JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23980
  • Score
    100M100P100Q131137F
  • License ISC

Takes an async iterator that yields buffers and concatenates them all together

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

Build status Coverage Status Dependencies Status

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]