buffersplit
v1.0.1
Published
* default delimiter is space,you can use second arguments to change it
Downloads
4
Readme
- default delimiter is space,you can use second arguments to change it
ʹ�ã�
1.npm install buffersplit --save-dev
var buffersplit=require('buffersplit'); var buffer=new Buffer('welcome to china');
var arr=buffersplit(buffer);
console.log(arr.toString());
var buffersplit=require('buffersplit'); var buffer=new Buffer('welcome-to-china'); var delimiter=new Buffer('-');
var arr=buffersplit(buffer,delimiter);
console.log(arr.toString());