npm

Need private packages and team management tools?Check out npm Orgs. »

node-buffer-as-typedarray

0.0.2 • Public • Published

node-buffer-as-typedarray

No copy wrap node Buffer as one of the typed array views

This is a simple wrapper for node Buffer, that will simply add array like getters and setters, allowing you to use Buffer with existing js libraries, without need to copy entire Buffer.

This library uses Little Endian only.

It's unlikely anyone will need this.

installation

$ npm install node-buffer-as-typedarray
var fs = require('fs');
var wrapper = require('node-buffer-as-typedarray');
var uint32Array = new wrapper.Uint32Array(10);
 
uint32Array[0] = 10;
console.log(uint32Array[0]); //10

install

npm i node-buffer-as-typedarray

Downloadsweekly downloads

5

version

0.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability