{"_id":"validate.io-typed-array-like","_rev":"5-f9f77279df36a4f777e2126ee838ff18","name":"validate.io-typed-array-like","description":"Validates if a value is typed-array-like.","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.0":{"name":"validate.io-typed-array-like","version":"0.0.0","description":"Validates if a value is typed-array-like.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"mocha","test-cov":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coverage -- -R spec","coveralls":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coveralls/coverage --report lcovonly -- -R spec && cat ./reports/coveralls/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./reports/coveralls"},"main":"./lib","repository":{"type":"git","url":"git://github.com/validate-io/typed-array-like.git"},"keywords":["validate.io","validate","validation","validator","valid","typed-array","typed-array like","like","is","istypedarraylike","length","duck type","duck","type"],"bugs":{"url":"https://github.com/validate-io/typed-array-like/issues"},"dependencies":{"compute-const-max-safe-integer":"^1.0.0","validate.io-integer-primitive":"^1.0.0"},"devDependencies":{"chai":"3.x.x","mocha":"2.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"2.x.x","jshint-stylish":"2.x.x"},"license":"MIT","gitHead":"eeae11e8d02a54a49c3bc17d408bad4c6bb7ca5e","homepage":"https://github.com/validate-io/typed-array-like#readme","_id":"validate.io-typed-array-like@0.0.0","_shasum":"1d0e8502b327b97a0774282e301ec357b27f8bc5","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"1d0e8502b327b97a0774282e301ec357b27f8bc5","tarball":"https://registry.npmjs.org/validate.io-typed-array-like/-/validate.io-typed-array-like-0.0.0.tgz","integrity":"sha512-bd8XWKYwT4k6WyT0NEHIpJdU7RqoNP2ReTYPKwY7d1Ja958KvrjhYADNYAIS6DEiTq6FmHU401EzeXdTL6OBSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICskKbMlFYTtZNlVncv9lVapt2R3wc/Y0sPjafek1FFFAiEAq0YWZU21qpoAcPzRLK0uwGUxJ7qcsJhy6hA8BmyWx9Q="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"validate.io-typed-array-like","version":"1.0.0","description":"Validates if a value is typed-array-like.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"mocha","test-cov":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coverage -- -R spec","coveralls":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coveralls/coverage --report lcovonly -- -R spec && cat ./reports/coveralls/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./reports/coveralls"},"main":"./lib","repository":{"type":"git","url":"git://github.com/validate-io/typed-array-like.git"},"keywords":["validate.io","validate","validation","validator","valid","typed-array","typed-array like","like","is","istypedarraylike","length","duck type","duck","type"],"bugs":{"url":"https://github.com/validate-io/typed-array-like/issues"},"dependencies":{"compute-const-max-safe-integer":"^1.0.0","validate.io-integer-primitive":"^1.0.0"},"devDependencies":{"chai":"3.x.x","mocha":"2.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"2.x.x","jshint-stylish":"2.x.x"},"license":"MIT","gitHead":"81fafeb19e6d621df54b460f91aa8e76a21ae12d","homepage":"https://github.com/validate-io/typed-array-like#readme","_id":"validate.io-typed-array-like@1.0.0","_shasum":"02bcc6a6fe37774d24574c9bcd1240f201bd16da","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"02bcc6a6fe37774d24574c9bcd1240f201bd16da","tarball":"https://registry.npmjs.org/validate.io-typed-array-like/-/validate.io-typed-array-like-1.0.0.tgz","integrity":"sha512-iTY3lus5hjaeSWFM9c+6IANk92QSHeheaOd60mhOiOxx7Qv2gWgsTLiGbYv5YtBLkdrxrGafvO1v2Opu0J+VFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYQ8qKQmihBzSvH0unPmRnCB78PRL1vidzI3Xg08OnIQIhAJoklnADwZiR6mR6YrwVa6tssoA7+bU6UZvQxUK5nE0p"}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.1":{"name":"validate.io-typed-array-like","version":"1.0.1","description":"Validates if a value is typed-array-like.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"mocha","test-cov":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coverage -- -R spec","coveralls":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coveralls/coverage --report lcovonly -- -R spec && cat ./reports/coveralls/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./reports/coveralls"},"main":"./lib","repository":{"type":"git","url":"git://github.com/validate-io/typed-array-like.git"},"keywords":["validate.io","validate","validation","validator","valid","typed-array","typed-array like","like","is","istypedarraylike","length","duck type","duck","type"],"bugs":{"url":"https://github.com/validate-io/typed-array-like/issues"},"dependencies":{"const-max-uint32":"^1.0.2","validate.io-integer-primitive":"^1.0.0"},"devDependencies":{"chai":"3.x.x","mocha":"2.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"2.x.x","jshint-stylish":"2.x.x"},"license":"MIT","gitHead":"2cfaea8a567bdef1cfad3b44f8ca3c57196d7afa","homepage":"https://github.com/validate-io/typed-array-like#readme","_id":"validate.io-typed-array-like@1.0.1","_shasum":"bc9d08ed1d9bfa7bd9ec544c6ee3735a786df70a","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"bc9d08ed1d9bfa7bd9ec544c6ee3735a786df70a","tarball":"https://registry.npmjs.org/validate.io-typed-array-like/-/validate.io-typed-array-like-1.0.1.tgz","integrity":"sha512-PIwOvvvIUoJhpalEYaHGeSaE1Bdi1dnxvEWF81cqmCIFVLXjjyBrytkEcOKhmtjxw4gMR6LhSDX1478bDDquFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp1whXT/8jYMnQYK0Lb9aaG/33GzWIML1i57lKHooBigIhAI/ZNFTPeFVlJNFO4DVrDKfcltP8SfC9N2a/jbB00Fwq"}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/validate.io-typed-array-like-1.0.1.tgz_1459232207939_0.19447830086573958"}}},"readme":"typed-array-like\n===\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependencies][dependencies-image]][dependencies-url]\n\n> Validates if a value is [typed-array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays)-like.\n\n\n## Installation\n\n``` bash\n$ npm install validate.io-typed-array-like\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\n``` javascript\nvar isTypedArrayLike = require( 'validate.io-typed-array-like' );\n```\n\n#### isTypedArrayLike( value )\n\nValidates if a value is [`typed-array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays)-like.\n\n``` javascript\nvar bool;\n\nbool = isTypedArrayLike( new Int16Array() );\n// returns true\n\nbool = isTypedArrayLike({\n\t'length': 10,\n\t'byteOffset': 0,\n\t'byteLength': 10,\n\t'BYTES_PER_ELEMENT': 4\n});\n// returns true\n```\n\n\n## Examples\n\n``` javascript\nvar isTypedArrayLike = require( 'validate.io-typed-array-like' );\n\nvar arr = {\n\t'BYTES_PER_ELEMENT': 8,\n\t'length': 10,\n\t'byteOffset': 0,\n\t'byteLength': 10\n};\nconsole.log( isTypedArrayLike( arr ) );\n// returns true\n\nconsole.log( isTypedArrayLike( new Int8Array( 4 ) ) );\n// returns true\n\nconsole.log( isTypedArrayLike( [] ) );\n// returns false\n\nconsole.log( isTypedArrayLike( {} ) );\n// returns false\n\nconsole.log( isTypedArrayLike( null ) );\n// returns false\n\nconsole.log( isTypedArrayLike( 'beep' ) );\n// returns false\n\nconsole.log( isTypedArrayLike( function foo( a, b ) {} ) );\n// returns false\n```\n\nTo run the example code from the top-level application directory,\n\n``` bash\n$ node ./examples/index.js\n```\n\n\n## Tests\n\n### Unit\n\nUnit tests use the [Mocha](http://mochajs.org) test framework with [Chai](http://chaijs.com) assertions. To run the tests, execute the following command in the top-level application directory:\n\n``` bash\n$ make test\n```\n\nAll new feature development should have corresponding unit tests to validate correct functionality.\n\n\n### Test Coverage\n\nThis repository uses [Istanbul](https://github.com/gotwarlost/istanbul) as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-cov\n```\n\nIstanbul creates a `./reports/coverage` directory. To access an HTML version of the report,\n\n``` bash\n$ make view-cov\n```\n\n\n---\n## License\n\n[MIT license](http://opensource.org/licenses/MIT). \n\n\n## Copyright\n\nCopyright &copy; 2015-2016. Athan Reines.\n\n\n[npm-image]: http://img.shields.io/npm/v/validate.io-typed-array-like.svg\n[npm-url]: https://npmjs.org/package/validate.io-typed-array-like\n\n[travis-image]: http://img.shields.io/travis/validate-io/typed-array-like/master.svg\n[travis-url]: https://travis-ci.org/validate-io/typed-array-like\n\n[coveralls-image]: https://img.shields.io/coveralls/validate-io/typed-array-like/master.svg\n[coveralls-url]: https://coveralls.io/r/validate-io/typed-array-like?branch=master\n\n[dependencies-image]: http://img.shields.io/david/validate-io/typed-array-like.svg\n[dependencies-url]: https://david-dm.org/validate-io/typed-array-like\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/validate-io/typed-array-like.svg\n[dev-dependencies-url]: https://david-dm.org/dev/validate-io/typed-array-like\n\n[github-issues-image]: http://img.shields.io/github/issues/validate-io/typed-array-like.svg\n[github-issues-url]: https://github.com/validate-io/typed-array-like/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-28T08:35:47.935Z","created":"2015-06-24T03:57:39.124Z","0.0.0":"2015-06-24T03:57:39.124Z","1.0.0":"2015-06-24T03:58:58.867Z","1.0.1":"2016-03-29T06:16:48.357Z"},"homepage":"https://github.com/validate-io/typed-array-like#readme","keywords":["validate.io","validate","validation","validator","valid","typed-array","typed-array like","like","is","istypedarraylike","length","duck type","duck","type"],"repository":{"type":"git","url":"git://github.com/validate-io/typed-array-like.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/validate-io/typed-array-like/issues"},"license":"MIT","readmeFilename":"README.md"}