Pad stdout and stderr
Especially useful with CLI tools when you don't directly control the output.

$ npm install pad-stdio
import {padStdout} from 'pad-stdio';
padStdout(' '); // Start padding
console.log('foo');
padStdout(' ');
console.log('bar');
padStdout(); // End padding
console.log('baz');
/*
foo
bar
baz
*/
Pads each line of process.stdout with the given pad string until the method is called again with no arguments.
Pads each line of process.stderr with the given pad string until the method is called again with no arguments.