Skip to content

mkg20001/it-buffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •