Package Exports
- it-to-buffer
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 (it-to-buffer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
it-to-buffer
Takes an iterable that yields buffer-like-objects and concats them into one buffer
Install
$ npm install --save it-to-buffer
Usage
const toBuffer = require('it-to-buffer')
// This can also be an iterator, async iterator, generator, etc
const values = [Buffer.from([0, 1]), Buffer.from([2, 3])]
const result = await toBuffer(values)
console.info(result) // Buffer[0, 1, 2, 3]