How do I start a CoffeeScript repl from within a CoffeeScript script?
问题 If I do repl = require 'repl' repl.start {useGlobal: true} It starts a Node repl. How do I start a CoffeeScript repl instead? Thanks 回答1: Nesh is a project to try and make this a bit easier and extensible: http://danielgtaylor.github.com/nesh/ It provides a way to embed a REPL with support for multiple languages like CoffeeScript as well as providing an asyncronous plugin architecture, support to execute code in the context of the REPL on startup, etc. For example: nesh = require 'nesh' nesh