quote-stream

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    3,655,471
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    3,655,471
  • 1.0.1
    82
  • 1.0.0
    14
  • 0.0.0
    238,334

Package Sidebar

Install

npm i quote-stream

Weekly Downloads

764,721

Version

1.0.2

License

MIT

Last publish

Collaborators

  • nopersonsmodules