Nerds Pledge Magnanimously
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    convert-bufferpublic

    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

    Keywords

    none

    install

    npm i convert-buffer

    Downloadsweekly downloads

    5

    version

    0.0.2

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar