REPL environment.
var repl = require( '@stdlib/repl' );
Starts a REPL environment.
repl( onStart );
function onStart( error, r ) {
if ( error ) {
throw error;
}
}
var repl = require( '@stdlib/repl' );
// Start the REPL:
repl( onStart );
function onStart( error, r ) {
if ( error ) {
throw error;
}
// After the REPL has started, exit the process...
setTimeout( onTimeout, 2500 );
function onTimeout() {
r.close();
}
}
Usage: stdlib-repl [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
$ stdlib-repl
Starting REPL...