npm.io
0.1.0 • Published 12 years ago

process-logger

Licence
—
Version
0.1.0
Deps
1
Vulns
0
Weekly
0

process-logger

Prefix child process console logging

NPM version Build Status

Usage

var logProcess = require('process-logger'),
    spawn = require('child_process').spawn;

var child = spawn('ls');
logProcess(child, {prefix: '[child]'});

// Output
//$ [child] README.md
//$ [child] lib
//$ [child] node_modules
//$ [child] package.json
//$ [child] src
//$ [child] test

Keywords