Neighbourhood Party Manager

to-data-view

1.0.0 • Public • Published

To DataView

Create a DataView over an ArrayBuffer (commonly used in the browsers) or a Buffer (commonly used in Node.js).

Installation

npm install --save to-data-view

Usage

const toDataView = require('to-data-view')
 
// This function will accept both `ArrayBuffer` and `Buffer` as input
function awesomeParser (source) {
  const view = toDataView(source)
 
  // ...
}

API

toDataView(data: ArrayBuffer | Buffer): DataView

Return a DataView instance that uses the same memory as the provided ArrayBuffer or Buffer.

Keywords

none

install

npm i to-data-view

Downloadsweekly downloads

102

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability