Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomfun/node-shell-commandor
javascript terminal multiplexer and command runner
https://github.com/tomfun/node-shell-commandor
Last synced: about 1 month ago
JSON representation
javascript terminal multiplexer and command runner
- Host: GitHub
- URL: https://github.com/tomfun/node-shell-commandor
- Owner: tomfun
- Created: 2016-11-07T19:01:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-09T21:42:25.000Z (about 8 years ago)
- Last Synced: 2024-10-08T11:26:01.163Z (3 months ago)
- Language: JavaScript
- Size: 425 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## node-shell-commandor
### javascript terminal multiplexer and command runner
### Example
```
const commander = require('node-shell-commandor');commands = [{
command: 'echo 1 && sleep 1'
}, {
command: 'ls -lA && sleep 1 && ls -l && sleep 1 && ls -l --color=always /var/log/'
}];commander.run(commands);
```
![example run](examples/why.jpg)How to exit? *Ctrl+c* or *q*
How to see output of selected command? Use arrows (up/down then enter)
![example run](examples/select.jpg)
![example run](examples/view.jpg)