-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
84 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# 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). | ||
|
||
[![build status](https://secure.travis-ci.org/es-shims/typedarray.png)](http://travis-ci.org/es-shims/typedarray) | ||
|
||
[![testling badge](https://ci.testling.com/es-shims/typedarray.png)](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 |
This file was deleted.
Oops, something went wrong.