quote-stream
transform a stream into a quoted string
Last updated 10 years ago by substack .
MIT · Repository · Bugs · Original npm
$ cnpm install quote-stream 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (10 years ago)

2 Versions

  • 0.0.0                                ...           11 years ago
  • 1.0.2                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org