JSPM

recursive-buffer-split

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q23742F
  • License MIT

String.prototype.split() for Buffers

Package Exports

  • recursive-buffer-split

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (recursive-buffer-split) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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> ]