node package manager

@tww/terminus-maximus

@tww/terminus-maximus npm version

Run concurrent command line commands in an organized and readable way

Installation

$ npm install --save @tww/terminus-maximus

Usage

  1. create a .terminusMaximus file (JSON), eg:

See the api config below for more about these options

{
  "errorHeight": 20,
  "scripts": {
    "ping": {
      "screensPerRow": 3,
      "commands": [
        {
          "label": "ping google",
          "command": "ping www.google.com",
          "screenConfig": {}
        },
        {
          "label": "ping microsoft",
          "command": "ping www.microsoft.com",
          "screenConfig": {}
        },
        {
          "label": "ping yahoo",
          "command": "ping www.yahoo.com",
          "screenConfig": {}
        },
        {
          "label": "ping reddit",
          "command": "ping www.reddit.com",
          "screenConfig": {}
        },
        {
          "label": "ping craigslist.com",
          "command": "ping www.craigslist.com",
          "screenConfig": {}
        },
        {
          "label": "ping ravelry",
          "command": "ping www.ravelry.com",
          "screenConfig": {}
        }
      ]
    },
    "http": {
      "commands": [
        {
          "label": "http",
          "command": "http-server",
          "screenConfig": {}
        },
        {
          "label": "ping",
          "command": "curl http://127.0.0.1:8080/",
          "screenConfig": {}
        }
      ]
    }
  }
}
 
  1. add an npm script for your command, eg ping.
//... 
"scripts": {
  "ping" "termax ping"
}
//... 
  1. run npm run ping and behold, your readable output of 6 pings.

logo

API

See our api

License

MIT © Eric Wooley