react-saasify-chrisvxd
Version:
React components for Saasify web clients.
54 lines (33 loc) • 848 B
Markdown
# quote-stream
transform a stream into a quoted string
[](https://ci.testling.com/substack/quote-stream)
[](http://travis-ci.org/substack/quote-stream)
# example
``` js
var quote = require('quote-stream');
process.stdin.pipe(quote()).pipe(process.stdout);
```
output:
```
$ echo beep boop | node example/stream.js
"beep boop\n"
```
# methods
``` js
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](https://npmjs.org) do:
```
npm install quote-stream
```
# license
MIT