You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
.. | ||
bin | 3 years ago | |
example | 3 years ago | |
test | 3 years ago | |
.travis.yml | 3 years ago | |
LICENSE | 3 years ago | |
index.js | 3 years ago | |
package.json | 3 years ago | |
readme.markdown | 3 years ago |
readme.markdown
quote-stream
transform a stream into a quoted string
example
var quote = require('quote-stream');
process.stdin.pipe(quote()).pipe(process.stdout);
output:
$ echo beep boop | node example/stream.js
"beep boop\n"
methods
var quote = require('quote-stream')
var q = quote()
Return a transform stream q
that wraps input in double quotes and adds escape
characters to the chunks.
usage
usage: quote-stream
Transform stdin to a quoted string on stdout.
install
With npm do:
npm install quote-stream
license
MIT