JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8874
  • Score
    100M100P100Q158350F
  • License Apache-2.0

Unslab some slab'ed buffers

Package Exports

  • unslab
  • unslab/index.js

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 (unslab) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

unslab

Unslab some slab'ed buffers

npm install unslab

Usage

const unslab = require('unslab')

// the buf returned unpools the buffer passed from the memory slab
const buf = unslab(Buffer.from('hello world'))

// can do multiple at the same time if you use them together. only does a single alloc in this case
const [a, b] = unslab([Buffer.from('hello'), Buffer.from('world')])

License

Apache-2.0