Skip to content

Boot an interactive subshell from node. Useful for custom command-line environments.

License

Notifications You must be signed in to change notification settings

hughsk/subshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

subshell Flattr this!experimental

Boot an interactive subshell from node. Useful for custom command-line environments.

Usage

subshell

subshell([cwd], [env], [exit])

Spawns a subshell appropriate for your system, and wires up node's stdio to the shell. Optionally, you can also pass:

  • A cwd string, for the directory to run your shell from.
  • An env object, to override the shell's environment variables.
  • An exit callback with the signature (err, code), called when the shell closes.

License

MIT. See LICENSE.md for details.

About

Boot an interactive subshell from node. Useful for custom command-line environments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published