0.0.2 • Published 11 years ago

convert-buffer v0.0.2

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

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) -> 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

0.0.2

11 years ago

0.0.1

11 years ago