create-process

0.0.8 • Public • Published

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()

Package Sidebar

Install

npm i create-process

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

2.54 kB

Total Files

4

Last publish

Collaborators

  • afterburn