node-floaties
v0.2.0
Published
Stream utilities for node.js.
Downloads
3
Readme
floaties
Utilities for node.js streams.
Usage
install
npm install --save node-floaties
yarn add node-floaties
colorize
const floaties = require('node-floaties');
process.stdin.pipe(floaties.colorize()).pipe(process.stdout);
// output is blue
process.stdin.pipe(floaties.colorize({ color: 'green' })).pipe(process.stdout);
// output is green
prepend
const floaties = require('node-floaties');
process.stdin.pipe(floaties.prepend('[INFO]: ')).pipe(process.stdout);
// [INFO]: your text here