Skip to content

rogerbf/recursive-buffer-split

Repository files navigation

recursive-buffer-split

Recursively split a buffer without intermediate string conversion.

usage

const split = require(`recursive-buffer-split`)

split(Buffer.from(` `), Buffer.from(`the humans are dead`))
// [ <Buffer 74 68 65>,
//   <Buffer 68 75 6d 61 6e 73>,
//   <Buffer 61 72 65>,
//   <Buffer 64 65 61 64> ]

About

recursively split a buffer without intermediate string conversion

Resources

Stars

Watchers

Forks

Packages

No packages published