@cjser/pad-stdio
v3.0.0-cjser.2
Published
Pad stdout and stderr
Maintainers
Readme
pad-stdio
Pad stdout and stderr
Especially useful with CLI tools when you don't directly control the output.

Install
$ npm install pad-stdioUsage
import {padStdout} from 'pad-stdio';
padStdout(' '); // Start padding
console.log('foo');
padStdout(' ');
console.log('bar');
padStdout(); // End padding
console.log('baz');
/*
foo
bar
baz
*/API
padStdout(padString)
Pads each line of process.stdout with the given pad string until the method is called again with no arguments.
padStderr(padString)
Pads each line of process.stderr with the given pad string until the method is called again with no arguments.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/pad-stdio
