Skip to content

mattdesl/quote-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

transform a stream into a quoted string

Resources

License

Stars

Watchers

Forks

Packages

No packages published