JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 576
  • Score
    100M100P100Q96037F
  • License (MIT or CC0 1.0)

Easily run multiple commands in parallel threads.

Package Exports

  • runstorm
  • runstorm/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (runstorm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

RunStorm

Easily run multiple commands in parallel threads.

Reference docs: http://electrovir.github.io/runstorm

Install

npm i -D runstorm

CLI

List the commands to run in parallel:

npx runstorm "echo 'command 1'" "sleep 2 && echo 'command 2'"

Run npx runstorm --help to see additional options.

API

Commands can be run with runCommands:

import {ColorKey, runCommands} from 'runstorm';

await runCommands([
    {
        command: 'echo "command 1"',
        color: ColorKey.red,
    },
    {
        command: 'sleep 2 && echo "command 2"',
        color: ColorKey.blue,
        name: 'delayed',
    },
]);