capellaresumo e50e316fbd Adicionando filtro de partículas | 6 years ago | |
---|---|---|
.. | ||
bin | 6 years ago | |
example | 6 years ago | |
test | 6 years ago | |
.travis.yml | 6 years ago | |
LICENSE | 6 years ago | |
index.js | 6 years ago | |
package.json | 6 years ago | |
readme.markdown | 6 years ago |
transform a stream into a quoted string
var quote = require('quote-stream');
process.stdin.pipe(quote()).pipe(process.stdout);
output:
$ echo beep boop | node example/stream.js
"beep boop\n"
var quote = require('quote-stream')
Return a transform stream q
that wraps input in double quotes and adds escape
characters to the chunks.
usage: quote-stream
Transform stdin to a quoted string on stdout.
With npm do:
npm install quote-stream
MIT