multiplerun-same-tab
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i multiplerun-same-tab

Weekly Downloads

1

Version

1.1.3

License

MIT

Unpacked Size

560 kB

Total Files

7

Last publish

Collaborators

  • dutzi