buffer-to-typed-array

3.0.0 • Public • Published

buffer-to-typed-array

converts Buffers to TypedArrays.

stable

install

with npm, do:

npm i --save buffer-to-typed-array

usage

var toTypedArray = require('buffer-to-typed-array');
var toInt16 = toTypedArray('int16')
var buf = new Buffer([0x01, 0x02, 0x03, 0x04])
var arr = toInt16(buf)

license

ISC

/buffer-to-typed-array/

    Package Sidebar

    Install

    npm i buffer-to-typed-array

    Weekly Downloads

    6

    Version

    3.0.0

    License

    ISC

    Unpacked Size

    2.64 kB

    Total Files

    4

    Last publish

    Collaborators

    • ahdinosaur