it-buffer

0.1.3 • Public • Published

it-buffer

Is it a string? Is it a BufferList? Or just a Buffer? Worry no more with it-buffer!

It exposes a transform stream that converts all buffer-like objects into true buffers

Usage

const pipe = require('it-pipe')

pipe(
  src,
  require('it-buffer'),
  dst
)

Also exposes .toBuffer() (the same as above) and .toList() (returns BufferLists instead of Buffers)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    1,830
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    1,830
  • 0.1.2
    129
  • 0.1.1
    2
  • 0.1.0
    1

Package Sidebar

Install

npm i it-buffer

Weekly Downloads

1,962

Version

0.1.3

License

MPL-2.0

Unpacked Size

3.32 kB

Total Files

4

Last publish

Collaborators

  • mkg20001