{"bugs":{"url":"https://github.com/dcodeIO/node-BufferView/issues"},"dist":{"shasum":"7afd74a45f937fa422a1d338c08bbfdc76cd725d","tarball":"https://registry.npmjs.org/bufferview/-/bufferview-1.0.1.tgz","integrity":"sha512-q87jdvsZ/sEngmDUvPT/PJsBGCi998c3B1U/6IN1uGg+R2HrTFJUDccXZEx6OxpuLySyBDGXc7vkSt4BXTyKxA==","signatures":[{"sig":"MEYCIQCkxzl2eb8Ysfdi7hfdEXG7sULWylf+UONY2ZTiyPeXrgIhAJs+pBSjEW9susX/8XEIxi7hoQTvLEos+9Mo9OtpiDxe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"BufferView.min.js","name":"bufferview","_from":".","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"readme":"![BufferView - A DataView for node Buffers](https://raw.github.com/dcodeIO/BufferView/master/BufferView.png)\r\n==========\r\n\r\nThis one is simple: It's doing exactly what [DataView](https://developer.mozilla.org/en-US/docs/Web/API/DataView) does\r\nbut takes a node.js Buffer for it. The sole difference is that it additionally provides some convenience methods to work\r\nwith interchangeable BufferView and DataView instances, depending on the backing buffer:\r\n\r\n* `BufferView.create(Buffer|ArrayBuffer):BufferView|DataView` creates a BufferView if wrapping a Buffer and a DataView\r\n  otherwise\r\n* `BufferView.isBufferView(*):boolean` tests if a view is a BufferView wrapping a Buffer\r\n* `BufferView.isDataView(*):boolean` tests if a view is a DataView wrapping an ArrayBuffer\r\n\r\nThis basically lets you write code that is independent of what kind of buffer your backing buffer is, so that your\r\nlibrary does not need to copy back and forth between Buffers and ArrayBuffers - that would be sad.\r\n\r\n* Extends DataView for `instanceof` compatibility\r\n* [Well tested](https://github.com/dcodeIO/BufferView/blob/master/tests/suite.js)\r\n* Lean (BufferView.min.js is ~3KB)\r\n\r\n**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\r\n","engines":{"node":">=0.8"},"license":"Apache-2.0","scripts":{"make":"npm run-script build && npm run-script compile && npm test","test":"node node_modules/testjs/bin/testjs tests/suite.js","build":"preprocess src/BufferView.js src/ > BufferView.js","compile":"ccjs BufferView.js --create_source_map=BufferView.min.map --compilation_level=SIMPLE_OPTIMIZATIONS > BufferView.min.js","prepublish":"npm test"},"_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"keywords":["net","array","buffer","arraybuffer","typed array","bytebuffer"],"repository":{"url":"https://github.com/dcodeIO/node-BufferView.git","type":"git"},"_npmVersion":"1.2.32","description":"A DataView for node Buffers.","directories":{},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"readmeFilename":"README.md","devDependencies":{"testjs":"latest","preprocessor":"latest","closurecompiler":"latest"},"_id":"bufferview@1.0.1","version":"1.0.1"}