|  | преди 7 години | |
|---|---|---|
| .. | ||
| bin | преди 7 години | |
| example | преди 7 години | |
| test | преди 7 години | |
| .travis.yml | преди 7 години | |
| LICENSE | преди 7 години | |
| index.js | преди 7 години | |
| package.json | преди 7 години | |
| readme.markdown | преди 7 години | |
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