source: imaps-frontend/node_modules/typed-array-buffer/README.md

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.9 KB
Line 
1# typed-array-buffer <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
3[![github actions][actions-image]][actions-url]
4[![coverage][codecov-image]][codecov-url]
5[![License][license-image]][license-url]
6[![Downloads][downloads-image]][downloads-url]
7
8[![npm badge][npm-badge-png]][package-url]
9
10Get the ArrayBuffer out of a TypedArray, robustly.
11
12This will work in node <= 0.10 and < 0.11.4, where there's no prototype accessor, only a nonconfigurable own property.
13It will also work in modern engines where `TypedArray.prototype.buffer` has been deleted after this module has loaded.
14
15## Example
16
17```js
18const typedArrayBuffer = require('typed-array-buffer');
19const assert = require('assert');
20
21const arr = new Uint8Array(0);
22assert.equal(arr.buffer, typedArrayBuffer(arr));
23```
24
25## Tests
26Simply clone the repo, `npm install`, and run `npm test`
27
28[package-url]: https://npmjs.org/package/typed-array-buffer
29[npm-version-svg]: https://versionbadg.es/ljharb/typed-array-buffer.svg
30[deps-svg]: https://david-dm.org/ljharb/typed-array-buffer.svg
31[deps-url]: https://david-dm.org/ljharb/typed-array-buffer
32[dev-deps-svg]: https://david-dm.org/ljharb/typed-array-buffer/dev-status.svg
33[dev-deps-url]: https://david-dm.org/ljharb/typed-array-buffer#info=devDependencies
34[npm-badge-png]: https://nodei.co/npm/typed-array-buffer.png?downloads=true&stars=true
35[license-image]: https://img.shields.io/npm/l/typed-array-buffer.svg
36[license-url]: LICENSE
37[downloads-image]: https://img.shields.io/npm/dm/typed-array-buffer.svg
38[downloads-url]: https://npm-stat.com/charts.html?package=typed-array-buffer
39[codecov-image]: https://codecov.io/gh/ljharb/typed-array-buffer/branch/main/graphs/badge.svg
40[codecov-url]: https://app.codecov.io/gh/ljharb/typed-array-buffer/
41[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/typed-array-buffer
42[actions-url]: https://github.com/ljharb/typed-array-buffer/actions
Note: See TracBrowser for help on using the repository browser.