recursive-buffer-split
v1.0.1
Published
String.prototype.split() for Buffers
Downloads
4
Maintainers
Readme
recursive-buffer-split
Like String.prototype.split() for Buffers. Uses recursion.
usage
const recursiveSplit = require(`recursive-buffer-split`)
const buff = Buffer.from(`the humans are dead`)
recursiveSplit(Buffer.from(` `), buff)
// [ <Buffer 74 68 65>,
// <Buffer 68 75 6d 61 6e 73>,
// <Buffer 61 72 65>,
// <Buffer 64 65 61 64> ]