rcshell

1.0.1 • Public • Published

rcshell

rcshell is the remote control shell. It runs commands in a separate PTY and reports back to you when they finish.

Example

var RCShell = require('rcshell'),
	shell= new RCShell();

shell.run('ls', ['-al', '--color'], function(err, result) {
	// `err` if there is a problem spawning the process, otherwise
	// `result.code` will have the process's exit code.
});

shell.host.on('data', function(data) {
	// `data` that got printed to the terminal
	// this will include control sequences
});

Readme

Keywords

none

Package Sidebar

Install

npm i rcshell

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • daguej