1 # quote-stream
3 transform a stream into a quoted string
5 [![testling badge](https://ci.testling.com/substack/quote-stream.png)](https://ci.testling.com/substack/quote-stream)
7 [![build status](https://secure.travis-ci.org/substack/quote-stream.png)](http://travis-ci.org/substack/quote-stream)
9 # example
11 ``` js
12 var quote = require('quote-stream');
13 process.stdin.pipe(quote()).pipe(process.stdout);
14 ```
16 output:
18 ```
19 $ echo beep boop | node example/stream.js
20 "beep boop\n"
21 ```
23 # methods
25 ``` js
26 var quote = require('quote-stream')
27 ```
29 ## var q = quote()
31 Return a transform stream `q` that wraps input in double quotes and adds escape
32 characters to the chunks.
34 # usage
36 ```
37 usage: quote-stream
39 Transform stdin to a quoted string on stdout.
41 ```
43 # install
45 With [npm](https://npmjs.org) do:
47 ```
48 npm install quote-stream
49 ```
51 # license
53 MIT