0.1.0 • Published 10 years ago

process-logger v0.1.0

Weekly downloads
5
License
-
Repository
github
Last release
10 years ago

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