Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 20-Sep-2020 | - | ||||
example/ | H | 03-May-2022 | - | |||
test/server/ | H | 03-May-2022 | - | |||
.travis.yml | H A D | 26-Oct-1985 | 48 | 5 | 4 | |
LICENSE | H A D | 26-Oct-1985 | 1.5 KiB | 36 | 30 | |
package.json | H A D | 20-Sep-2020 | 1.9 KiB | 83 | 82 | |
readme.markdown | H A D | 26-Oct-1985 | 1 KiB | 62 | 43 |
readme.markdown
1# typedarray 2 3TypedArray polyfill ripped from [this 4module](https://raw.github.com/inexorabletash/polyfill). 5 6[![build status](https://secure.travis-ci.org/substack/typedarray.png)](http://travis-ci.org/substack/typedarray) 7 8[![testling badge](https://ci.testling.com/substack/typedarray.png)](https://ci.testling.com/substack/typedarray) 9 10# example 11 12``` js 13var Uint8Array = require('typedarray').Uint8Array; 14var ua = new Uint8Array(5); 15ua[1] = 256 + 55; 16console.log(ua[1]); 17``` 18 19output: 20 21``` 2255 23``` 24 25# methods 26 27``` js 28var TA = require('typedarray') 29``` 30 31The `TA` object has the following constructors: 32 33* TA.ArrayBuffer 34* TA.DataView 35* TA.Float32Array 36* TA.Float64Array 37* TA.Int8Array 38* TA.Int16Array 39* TA.Int32Array 40* TA.Uint8Array 41* TA.Uint8ClampedArray 42* TA.Uint16Array 43* TA.Uint32Array 44 45# install 46 47With [npm](https://npmjs.org) do: 48 49``` 50npm install typedarray 51``` 52 53To use this module in the browser, compile with 54[browserify](http://browserify.org) 55or download a UMD build from browserify CDN: 56 57http://wzrd.in/standalone/typedarray@latest 58 59# license 60 61MIT 62