1.1.3 • Published 4 years ago

multiplerun-same-tab v1.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Run multiple commands on multiple terminals (or iTerm split panes)

DeepScan grade

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

iTerm Example

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()])