buffer-extend-split
v0.0.0
Published
extension for `buffer.split`
Downloads
132
Readme
buffer-split
node buffer extension: support split
Installation
$ npm install buffer-extent-split --save
Usage
var buf = new Buffer('beep\r\nboop');
var list = buf.split('\r\n');
// or
// var list = buf.split([10, 13]);
assert.equal(list[0], 'beep');
assert.equal(list[1], 'boop');
License
MIT