14.0.0 • Published 7 years ago

skypager-process-runner v14.0.0

Weekly downloads
3
License
UNLICENSED
Repository
github
Last release
7 years ago

Skypager Process Runner

This project lets you run commands in an asynchronous way while streaming the output of these commands as HTML which displays colorized terminal output. It is used internally skypager to capture the result of build processes and other such things

Installation

npm install skypager-process-runner

Usage

import ProcessRunner from 'skypager-process-runner'

const commandGenerator = (packageName) => `npm install ${packageName} --save --color always`

// this will control the name of the html file, and where the file is stored
const options = { group: 'package-installer', outputFolder: './logs/commands' }

// the runner lets you run the command repeatedly, storing the results of each run
// in its own file
const runner = new ProcessRunner(commandGenerator, options)

// npm install skypager-project --save --color always
runner.run('skypager-project').then(report => report)

The resulting report of each command run contains metadata that can be used for whatever purposes.

14.0.0

7 years ago

11.8.0

7 years ago

10.1.1

7 years ago

8.6.0

7 years ago

8.5.0

7 years ago

8.4.0

7 years ago

8.3.1

7 years ago

8.3.0

7 years ago

6.5.0

7 years ago

5.20.0

8 years ago

5.19.0

8 years ago

5.18.3

8 years ago

5.17.3

8 years ago

5.7.0

8 years ago

5.6.1

8 years ago

5.6.0

8 years ago

5.3.0

8 years ago

5.0.3

8 years ago

5.1.1

8 years ago

5.1.0

8 years ago

5.0.2

8 years ago

5.0.1

8 years ago

5.0.0

8 years ago

4.1.1

8 years ago

4.1.0

8 years ago

4.0.1

8 years ago

4.0.0

8 years ago