netstring-stream
v1.0.1
Published
Netstring reader/writer and streams.
Downloads
134
Readme
netstring-stream
Netstring reader/writer and streams.
Read/Write Usage
var Netstring = require('netstring-stream');
Netstring.write('hello world!'); //12:hello world!,
Netstring.read('12:hello world!,'); //hello world!
Transform Stream Usage
var writer = Netstring.writeStream();
writer.pipe(Netstring.readStream()).pipe(process.stdout);
writer.write('hello world!');
writer.write('goodbye!');
writer.end();
Debuglog
export NODE_DEBUG=nstring