2.0.0 • Published 6 years ago

split-spawn v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

node-split-spawn

javascript terminal multiplexer and command runner

Example

import run from 'split-spawn';

commands = ['echo 1 && sleep 1', 'ls -lA && sleep 1 && ls -l && sleep 1 && ls -l --color=always /var/log/'];
commands = [
  {
    command: 'ls',
    args: ['-l', '--color=always', '/var/log/'],
  }, {
    command: 'echo 1 && sleep 1',
  }, {
    command: 'ls -lA && sleep 1 && ls -l && sleep 1 && ls -l --color=always /var/log/',
  }
];

run(commands);

How to exit? Ctrl+c or q

How to see output of selected command? Use arrows (up/down then enter)

Credits:

Most code originated from: https://github.com/tomfun/node-shell-commandor

2.0.0

6 years ago

1.0.0

6 years ago