convert-buffer

0.0.2 • Public • Published

convert-buffer

convert from list type A to list type B.

var fs = require('fs')
  , convert = require('convert-buffer')
 
fs.createReadStream('file/path')
  .pipe(convert(Uint8Array))
  .pipe(/* something that wants Uint8Arrays! */)
 

api

convert(targetType[, howfunction][, decorateFunction]) -> stream

Convert input from whatever list type to targetType (i.e., each new chunk calls new targetType(input.length)); assign params using output[N] = how(input, N); additionally modify the output using decorateFunction.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    0

Package Sidebar

Install

npm i convert-buffer

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • chrisdickinson