vorpal-REPLinception
Vorpal Extension for node Repl
vorpal-REPLinception is a plugin to vorpal to provide a command to open a node REPL.
Installation
To add it to your project just yarn add
/npm install
it along vorpal
npm install vorpalnpm install vorpal-replinception
Basic Usage
const Vorpal = ;const vorpalReplinception = ; const vorpal = ; vorpal ;
Configuration
This is configurable, you can pass a config object to vorpalReplinception
:
here are so far the properties:
prompt
= the prompt used by the replcommandName
: the name of the vorpal command to enter the repl, default torepl
aliasName
: an alias for the commandName, default toconsole
, disable withfalse
helpMessageMessage
: the help message associated with the commandenterMessage
: some message at the entering of the node replexitMessage
: some message at the exit of the node repl, disable withfalse
exitMessage
: some message at the exit of the node repl, disable withfalse
historyFile
: where the repl history is persisted, default with.vorpal_node_history
, disable withfalse
context
: this is a key value object for the values you want to expose in the repl context.
For more details refer to the examples folder, specificaly the
my-repl-with-customized-repl.js
file