quote-stream

transform a stream into a quoted string

MIT 4 个版本
安装
npm install quote-stream
yarn add quote-stream
pnpm add quote-stream
bun add quote-stream
README

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

版本列表
1.0.2 2015-08-26
1.0.1 2015-08-14
1.0.0 2015-08-14
0.0.0 2014-04-20