3.0.0 • Published 5 years ago

buffer-to-typed-array v3.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

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