transform a stream into a quoted string
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin usage Apr 20, 2014
example working simple example Apr 20, 2014
test Improve test, fix dumbness Aug 14, 2015
.travis.yml badges Apr 20, 2014
LICENSE docs Apr 20, 2014
index.js buffer-equal instead of buffer.equals Aug 26, 2015
package.json 1.0.2 Aug 26, 2015
readme.markdown badges Apr 20, 2014

readme.markdown

quote-stream

transform a stream into a quoted string

testling badge

build status

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