Like sprintf but for streams.
var streamf = require('streamf');
streamf('foo: %s, bar: %j', someRawStream, someJSONStream))
.pipe(process.stdout)
Given someRawStream emits "bar" and someJSONStream emits {beep:"boop"},
the output will be:
foo: bar, bar: [{"beep":"boop"}]
$ npm install streamf
Given printf style string str, render using args.
Supported placeholders:
%s: stringify%d: numberify%j: json-parse-ifyYou can pass streams and normal values as args.
MIT