|
|
7 years ago | |
|---|---|---|
| .. | ||
| bin | 7 years ago | |
| example | 7 years ago | |
| test | 7 years ago | |
| .travis.yml | 7 years ago | |
| LICENSE | 7 years ago | |
| index.js | 7 years ago | |
| package.json | 7 years ago | |
| readme.markdown | 7 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