{"_id":"validate.io-ndarray-like","_rev":"4-ac6d038e5396c2cd1589f5f7bdf33a48","name":"validate.io-ndarray-like","description":"Validates if a value is ndarray-like.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"validate.io-ndarray-like","version":"0.0.0","description":"Validates if a value is ndarray-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/ndarray-like.git"},"keywords":["validate.io","validate","validation","validator","valid","ndarray","ndarraylike","is","isndarray","compute.io","compute"],"bugs":{"url":"https://github.com/validate-io/ndarray-like/issues"},"dependencies":{},"devDependencies":{"chai":"2.x.x","mocha":"2.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"2.x.x","jshint-stylish":"^1.0.0"},"license":"MIT","gitHead":"ded53fe82e0af28aa74a4f414a0ab4db46022ed0","homepage":"https://github.com/validate-io/ndarray-like#readme","_id":"validate.io-ndarray-like@0.0.0","_shasum":"5a4a03f8cab0a3f5e7b499a9a54bd6db6debd4e8","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"5a4a03f8cab0a3f5e7b499a9a54bd6db6debd4e8","tarball":"https://registry.npmjs.org/validate.io-ndarray-like/-/validate.io-ndarray-like-0.0.0.tgz","integrity":"sha512-eznhS7swklg4rY9V0PQt6oTRbd57ny+IwmpXfOEmYCggRJsyza4Kkz2+K2t2qI3cRDbvv8SyFapDjVpeoml+IQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA0TjPuBlv3YNceE4WUTXRcCqztcnQ6rQcXNUlzGtimkAiBIUYqNq35uKCU13LWB09oGOleA5pn5mm/gG+XSb+drlg=="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"validate.io-ndarray-like","version":"1.0.0","description":"Validates if a value is ndarray-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/ndarray-like.git"},"keywords":["validate.io","validate","validation","validator","valid","ndarray","ndarraylike","is","isndarray","compute.io","compute"],"bugs":{"url":"https://github.com/validate-io/ndarray-like/issues"},"dependencies":{},"devDependencies":{"chai":"2.x.x","mocha":"2.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"2.x.x","jshint-stylish":"^1.0.0"},"license":"MIT","gitHead":"da442913d6ecf148d95dcdaf6a131d8c4f5d0732","homepage":"https://github.com/validate-io/ndarray-like#readme","_id":"validate.io-ndarray-like@1.0.0","_shasum":"d8a3b0ed165bbf1d2fc0d0073270cfa552295919","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"d8a3b0ed165bbf1d2fc0d0073270cfa552295919","tarball":"https://registry.npmjs.org/validate.io-ndarray-like/-/validate.io-ndarray-like-1.0.0.tgz","integrity":"sha512-OV85AosxraPFSXJwzv/d7Cu5/dLiyLtsHmxtHTJcHW1N0uscd0eJ2df1Zk+HdID0eUctUllW/1YuQPUJFv1pTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSTWvCWyz/8wmrwRv2jKrSt5aYWP0ha9whiCpfNnOvbQIgSN9lF0sU8mjQwuDWzM82tk9xojjCUIRO6gakZaBxkoQ="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]}},"readme":"ndarray-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 [ndarray](https://github.com/compute-io/ndarray)-like.\n\n\n## Installation\n\n``` bash\n$ npm install validate.io-ndarray-like\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\n``` javascript\nvar ndarrayLike = require( 'validate.io-ndarray-like' );\n```\n\n#### ndarrayLike( value )\n\nValidates if a value is [ndarray](https://github.com/compute-io/ndarray)-like.\n\n``` javascript\nvar arr = {\n\t'data': [1,2,3,4],\n\t'shape': [2,2],\n\t'strides': [2,1],\n\t'offset': 0,\n\t'dtype': 'generic',\n\t'length': 4\n};\n\nconsole.log( ndarrayLike( arr ) );\n// returns true\n```\n\n\n## Examples\n\n``` javascript\nvar ndarrayLike = require( 'validate.io-ndarray-like' );\n\nvar arr = {\n\t'data': [1,2,3,4],\n\t'shape': [2,2],\n\t'strides': [2,1],\n\t'offset': 0,\n\t'dtype': 'generic',\n\t'length': 4\n};\nconsole.log( ndarrayLike( arr ) );\n// returns true\n\nconsole.log( ndarrayLike( [] ) );\n// returns false\n\nconsole.log( ndarrayLike( {} ) );\n// returns false\n\nconsole.log( ndarrayLike( null ) );\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. Athan Reines.\n\n\n[npm-image]: http://img.shields.io/npm/v/validate.io-ndarray-like.svg\n[npm-url]: https://npmjs.org/package/validate.io-ndarray-like\n\n[travis-image]: http://img.shields.io/travis/validate-io/ndarray-like/master.svg\n[travis-url]: https://travis-ci.org/validate-io/ndarray-like\n\n[coveralls-image]: https://img.shields.io/coveralls/validate-io/ndarray-like/master.svg\n[coveralls-url]: https://coveralls.io/r/validate-io/ndarray-like?branch=master\n\n[dependencies-image]: http://img.shields.io/david/validate-io/ndarray-like.svg\n[dependencies-url]: https://david-dm.org/validate-io/ndarray-like\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/validate-io/ndarray-like.svg\n[dev-dependencies-url]: https://david-dm.org/dev/validate-io/ndarray-like\n\n[github-issues-image]: http://img.shields.io/github/issues/validate-io/ndarray-like.svg\n[github-issues-url]: https://github.com/validate-io/ndarray-like/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-28T08:33:32.323Z","created":"2015-06-02T06:17:33.587Z","0.0.0":"2015-06-02T06:17:33.587Z","1.0.0":"2015-06-02T06:17:53.340Z"},"homepage":"https://github.com/validate-io/ndarray-like#readme","keywords":["validate.io","validate","validation","validator","valid","ndarray","ndarraylike","is","isndarray","compute.io","compute"],"repository":{"type":"git","url":"git://github.com/validate-io/ndarray-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/ndarray-like/issues"},"license":"MIT","readmeFilename":"README.md"}