multiplerun-same-tab
v1.1.3
Published
Run multiple commands on multiple terminals (or iTerm split panes)
Downloads
5
Readme
Run multiple commands on multiple terminals (or iTerm split panes)
Install
npm install multiplerun --save-dev
And add config to your package.json
{
"name": "some-package",
"scripts": {
"multiplerun-test": "multiplerun test"
},
"multiplerun": {
"test": [
"echo multiplerun!",
[
"echo hello",
"echo world"
]
]
}
}
npm run multiplerun-test
If you have installed iTerm.app on your Mac. You can see like this
Or those commands will be executed via default terminal app (cmd.exe
or Terminal.app
)
Run in script
const multiplerun = require('multiplerun');
multiplerun([
'echo multiplerun!',
[
'echo hello',
'echo world'
]
]);
API
multiplerun(layout, [basedir = process.cwd()])