Socket
Book a DemoInstallSign in
Socket

convert-buffer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-buffer

stream to convert from list type a to list type b

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

through

FAQs

Package last updated on 01 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts