Skip to content

electrovir/runstorm

Repository files navigation

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',
    },
]);

About

No description, website, or topics provided.

Resources

License

CC0-1.0, MIT licenses found

Licenses found

CC0-1.0
LICENSE-CC0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published