| Server IP : 107.13.46.68 / Your IP : 216.73.216.232 Web Server : Apache/2.4.58 (Ubuntu) System : Linux mariOS 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/node-typedarray/ |
Upload File : |
# typedarray <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
TypedArray polyfill ripped from [this
module](https://raw.github.com/inexorabletash/polyfill).
[](http://travis-ci.org/es-shims/typedarray)
[](https://ci.testling.com/es-shims/typedarray)
# example
``` js
var Uint8Array = require('typedarray').Uint8Array;
var ua = new Uint8Array(5);
ua[1] = 256 + 55;
console.log(ua[1]);
```
output:
```
55
```
# methods
``` js
var TA = require('typedarray')
```
The `TA` object has the following constructors:
* TA.ArrayBuffer
* TA.DataView
* TA.Float32Array
* TA.Float64Array
* TA.Int8Array
* TA.Int16Array
* TA.Int32Array
* TA.Uint8Array
* TA.Uint8ClampedArray
* TA.Uint16Array
* TA.Uint32Array
# install
With [npm](https://npmjs.org) do:
```
npm install typedarray
```
To use this module in the browser, compile with
[browserify](http://browserify.org)
or download a UMD build from browserify CDN:
http://wzrd.in/standalone/typedarray@latest
# license
MIT
[package-url]: https://npmjs.org/package/typedarray
[npm-version-svg]: https://versionbadg.es/es-shims/typedarray.svg
[deps-svg]: https://david-dm.org/es-shims/typedarray.svg
[deps-url]: https://david-dm.org/es-shims/typedarray
[dev-deps-svg]: https://david-dm.org/es-shims/typedarray/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/typedarray#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/typedarray.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/typedarray.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/typedarray.svg
[downloads-url]: https://npm-stat.com/charts.html?package=typedarray
[codecov-image]: https://codecov.io/gh/es-shims/typedarray/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/typedarray/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/typedarray
[actions-url]: https://github.com/es-shims/typedarray/actions