{"_id":"validate.io-matrix-like","_rev":"6-a31aa9a914aadf8c4d61d58b5068e63c","name":"validate.io-matrix-like","description":"Validates if a value is matrix-like.","dist-tags":{"latest":"1.0.2"},"versions":{"0.0.0":{"name":"validate.io-matrix-like","version":"0.0.0","description":"Validates if a value is matrix-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/matrix-like.git"},"keywords":["validate.io","validate","validation","validator","valid","matrix","matrixlike","is","ismatrix","compute.io","compute","type","class"],"bugs":{"url":"https://github.com/validate-io/matrix-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":"c6e7a54e3fdf444047dc586a69e3466eb0798b29","homepage":"https://github.com/validate-io/matrix-like#readme","_id":"validate.io-matrix-like@0.0.0","_shasum":"7a18569af59eade4ea4d233af212facce8f2f8bc","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"7a18569af59eade4ea4d233af212facce8f2f8bc","tarball":"https://registry.npmjs.org/validate.io-matrix-like/-/validate.io-matrix-like-0.0.0.tgz","integrity":"sha512-GfLDnpVPuD7Zh/jyV0END9qZLaxGJDYPYxn9vApNprxNTtIgl0wr3UsTSzkmp6o/iLjfuaz9PNumiEZ4TuSElw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHJT6RzkdIh9kHiiPpERAh7lS0hW6uhltmCLTWlHQ7eYAiB2wp2HPpyKyVvazJ8JVtBgDf7WAyeU/sKV2eglMpL3kw=="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"validate.io-matrix-like","version":"1.0.0","description":"Validates if a value is matrix-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/matrix-like.git"},"keywords":["validate.io","validate","validation","validator","valid","matrix","matrixlike","is","ismatrix","compute.io","compute","type","class"],"bugs":{"url":"https://github.com/validate-io/matrix-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":"aa63b0ab8db10917605319b901b73654e4e619d3","homepage":"https://github.com/validate-io/matrix-like#readme","_id":"validate.io-matrix-like@1.0.0","_shasum":"9376f00bd8aa556315a1ee5d55d5504cb96cf769","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"9376f00bd8aa556315a1ee5d55d5504cb96cf769","tarball":"https://registry.npmjs.org/validate.io-matrix-like/-/validate.io-matrix-like-1.0.0.tgz","integrity":"sha512-U4cYY5uvzOe+wkmN8jVRNDFaeHUyc2FyVH9yanEgm1d95O4rhW45E7TpfEBxhQuZwhCSNbNflY7nntTqoV+/mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAR5S+rsYLkZEegB5epFW9zhJwYqWkNDf8cKInHtrjZmAiEAwaSazuTVaxP8zceW3xB4IiaCX+xcsp+b7PpBaZu374g="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.1":{"name":"validate.io-matrix-like","version":"1.0.1","description":"Validates if a value is matrix-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/matrix-like.git"},"keywords":["validate.io","validate","validation","validator","valid","matrix","matrixlike","is","ismatrix","compute.io","compute","type","class","data","structure","dstructs"],"bugs":{"url":"https://github.com/validate-io/matrix-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":"83d58d54cbcfb1427d041107f6bd56116886887a","homepage":"https://github.com/validate-io/matrix-like#readme","_id":"validate.io-matrix-like@1.0.1","_shasum":"ad7c74f6962c46ab18bcf86926a0c3ed4b87c9b4","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"ad7c74f6962c46ab18bcf86926a0c3ed4b87c9b4","tarball":"https://registry.npmjs.org/validate.io-matrix-like/-/validate.io-matrix-like-1.0.1.tgz","integrity":"sha512-gHHLfIoEGMkheAccqYm1A679LXWxF3XVVbQ5xKbM0WXw6q3bc5yNkxqEbg+nFUFJ1i/ytpUR+qtK9Oobe4c6eQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN8TwJ+9QaJ/+f/21mco/ml1BsBAAxadjUpA4Yg/0NwwIgWUrRRBhIa70+q0/ZtXSbZk7+RY16gqrFewpPoMCdTso="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.2":{"name":"validate.io-matrix-like","version":"1.0.2","description":"Validates if a value is matrix-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/matrix-like.git"},"keywords":["validate.io","validate","validation","validator","valid","matrix","matrixlike","is","ismatrix","compute.io","compute","type","class","data","structure","dstructs"],"bugs":{"url":"https://github.com/validate-io/matrix-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":"37506b1013ec42192c403ad3b14ea2d4fc1f7c1d","homepage":"https://github.com/validate-io/matrix-like#readme","_id":"validate.io-matrix-like@1.0.2","_shasum":"5ec32a75d0889dac736dea68bdd6145b155edfc3","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"5ec32a75d0889dac736dea68bdd6145b155edfc3","tarball":"https://registry.npmjs.org/validate.io-matrix-like/-/validate.io-matrix-like-1.0.2.tgz","integrity":"sha512-86mqLUIkZCRAOVKZvpCB7sDCw1dKBjBkY+C6WO/wLo/jQx0sOqQZz3LLtDw0DCfuAKxRuhSmIpX3nzr0nWrbdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgDvZV0dA3IdheGp9LYUGqt8U44wmhVldtUdhLxsEnlgIgF639D+Gih8gfMV7Q+H4J6/+pC1xTGvz+QM0ec/PmUyY="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]}},"readme":"matrix-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 [matrix](https://github.com/dstructs/matrix)-like.\n\n\n## Installation\n\n``` bash\n$ npm install validate.io-matrix-like\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\n``` javascript\nvar matrixLike = require( 'validate.io-matrix-like' );\n```\n\n#### matrixLike( value )\n\nValidates if a value is [matrix](https://github.com/dstructs/matrix)-like.\n\n``` javascript\nvar mat = {\n\t'data': new Int8Array( 10 ),\n\t'shape': [5,2],\n\t'offset': 0,\n\t'strides': [2,1],\n\t'dtype': 'int8',\n\t'length': 10\n};\n\nconsole.log( matrixLike( mat ) );\n// returns true\n```\n\n\n## Examples\n\n``` javascript\nvar matrixLike = require( 'validate.io-matrix-like' );\n\nvar mat = {\n\t'data': new Int8Array( 10 ),\n\t'shape': [5,2],\n\t'offset': 0,\n\t'strides': [2,1],\n\t'dtype': 'int8',\n\t'length': 10\n};\nconsole.log( matrixLike( mat ) );\n// returns true\n\nconsole.log( matrixLike( [] ) );\n// returns false\n\nconsole.log( matrixLike( {} ) );\n// returns false\n\nconsole.log( matrixLike( 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-matrix-like.svg\n[npm-url]: https://npmjs.org/package/validate.io-matrix-like\n\n[travis-image]: http://img.shields.io/travis/validate-io/matrix-like/master.svg\n[travis-url]: https://travis-ci.org/validate-io/matrix-like\n\n[coveralls-image]: https://img.shields.io/coveralls/validate-io/matrix-like/master.svg\n[coveralls-url]: https://coveralls.io/r/validate-io/matrix-like?branch=master\n\n[dependencies-image]: http://img.shields.io/david/validate-io/matrix-like.svg\n[dependencies-url]: https://david-dm.org/validate-io/matrix-like\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/validate-io/matrix-like.svg\n[dev-dependencies-url]: https://david-dm.org/dev/validate-io/matrix-like\n\n[github-issues-image]: http://img.shields.io/github/issues/validate-io/matrix-like.svg\n[github-issues-url]: https://github.com/validate-io/matrix-like/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-28T08:33:20.312Z","created":"2015-06-02T06:41:56.349Z","0.0.0":"2015-06-02T06:41:56.349Z","1.0.0":"2015-06-02T06:42:18.257Z","1.0.1":"2015-06-05T06:26:17.866Z","1.0.2":"2015-06-07T07:58:41.655Z"},"homepage":"https://github.com/validate-io/matrix-like#readme","keywords":["validate.io","validate","validation","validator","valid","matrix","matrixlike","is","ismatrix","compute.io","compute","type","class","data","structure","dstructs"],"repository":{"type":"git","url":"git://github.com/validate-io/matrix-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/matrix-like/issues"},"license":"MIT","readmeFilename":"README.md"}