npm.io
0.0.8 • Published 6 years ago

create-process

Licence
MIT
Version
0.0.8
Deps
1
Size
2 kB
Vulns
0
Weekly
0

create-process

enter image description here

Small utility library to help your create and manage node processes more easily. (work in progress)

Installation

npm install --save create-process

Usage

const createProcess = require('create-process')

// Simple usage:
const p = createProcess('npm run build')

// Advanced usage:
const p = createProcess({
  cmd: 'npm',
  args: ['run', 'build'],
  opts: {
    cwd: path.join(__dirname, '..')
  }
})

// Killing your process:
p.kill()

Keywords