{"_id":"isval","_rev":"11-7806ddec50bc3357448b6277fb4d850f","name":"isval","description":"Yet another value type validator.","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.1":{"name":"isval","version":"0.0.1","description":"Yet another value type validator.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/tur-nr/node-isval.git"},"keywords":["type","checker","validator","valid"],"author":{"name":"Christopher Turner","email":"turner296@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tur-nr/node-isval/issues"},"homepage":"https://github.com/tur-nr/node-isval","devDependencies":{"mocha":"^1.21.4"},"gitHead":"68039c554125e84a0d73a9619917f1d491c222f7","_id":"isval@0.0.1","_shasum":"0a93e41674d3fe3416314db9e918b6b1aeb00efa","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"tur-nr","email":"turner296@gmail.com"},"maintainers":[{"name":"tur-nr","email":"turner296@gmail.com"}],"dist":{"shasum":"0a93e41674d3fe3416314db9e918b6b1aeb00efa","tarball":"https://registry.npmjs.org/isval/-/isval-0.0.1.tgz","integrity":"sha512-ha40X65RquOZG+KoyTRZvEtj91qKKC+G2ynhF97etN3V9pmzp2VOirVkuJ5suiChpYdHsVp7XBFZVUaP5AmXdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDFlXSRDtXTAhYec+9ypGVn6g2jqigQuAQOU5r+yT5X9AiEAzrXTH0GXBfOd5Z+eZK7AMEEWo7pyHxVB/fxDx07D6bc="}]}},"0.0.2":{"name":"isval","version":"0.0.2","description":"Yet another value type validator.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/tur-nr/node-isval.git"},"keywords":["type","checker","validator","valid"],"author":{"name":"Christopher Turner","email":"turner296@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tur-nr/node-isval/issues"},"homepage":"https://github.com/tur-nr/node-isval","devDependencies":{"mocha":"^1.21.4"},"gitHead":"8f061e2925c1b193e7d929428bb548d3a654d62a","_id":"isval@0.0.2","_shasum":"1ceb0171c89113e3f5098a4f7336caaf33bef03f","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"tur-nr","email":"turner296@gmail.com"},"maintainers":[{"name":"tur-nr","email":"turner296@gmail.com"}],"dist":{"shasum":"1ceb0171c89113e3f5098a4f7336caaf33bef03f","tarball":"https://registry.npmjs.org/isval/-/isval-0.0.2.tgz","integrity":"sha512-OLp5epbh7yJjh8Z75tgJ7m7YDIauzrD1tkR2UPaPUgcSa+xAR3zLKUhP402smXPxhUIRLAZ+Ph99ecR+3Rynsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE1JLMSim3cYCpQwKap1+rjfruJ3LizW+CEsdHOalFBrAiEAywgQmG2H1jiHt8bQijPGc85/lCNTac1TyMRr/3+eCu0="}]}},"0.0.3":{"name":"isval","version":"0.0.3","description":"Yet another value type validator.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/tur-nr/node-isval.git"},"keywords":["type","checker","validator","valid"],"author":{"name":"Christopher Turner","email":"turner296@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tur-nr/node-isval/issues"},"homepage":"https://github.com/tur-nr/node-isval","devDependencies":{"mocha":"^1.21.4"},"dependencies":{"is-generator":"^1.0.0"},"gitHead":"7e20e88b08cdeb4a6b871321e96e6160462ed0c5","_id":"isval@0.0.3","_shasum":"15618ff6fdc826a18f6c5664a8989bd2f21c4f7d","_from":".","_npmVersion":"2.6.0","_nodeVersion":"1.3.0","_npmUser":{"name":"tur-nr","email":"turner296@gmail.com"},"maintainers":[{"name":"tur-nr","email":"turner296@gmail.com"}],"dist":{"shasum":"15618ff6fdc826a18f6c5664a8989bd2f21c4f7d","tarball":"https://registry.npmjs.org/isval/-/isval-0.0.3.tgz","integrity":"sha512-+w7N3zbbeWx7lw17uJ7qLxJw+KYo4lqPMl6bV9Q2lYB6r7hmNam9p7Vwj6pnt4CiHwo0y19OFbF80s4kExribw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaR6EwRIdJ6QV4vpAXR+APuormYB0zwYVyCm908uT/fgIhAJGnvngrFiOYJaeKdfmb83mnuMeip2D2ADsOpc/uqlE+"}]}},"0.1.1":{"name":"isval","version":"0.1.1","description":"Yet another value type validator.","main":"index.js","scripts":{"prepublish":"npm test","preversion":"npm test","test":"mocha --harmony"},"repository":{"type":"git","url":"git+https://github.com/tur-nr/node-isval.git"},"keywords":["type","checker","validator","valid"],"author":{"name":"Christopher Turner","email":"turner296@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tur-nr/node-isval/issues"},"homepage":"https://github.com/tur-nr/node-isval","devDependencies":{"mocha":"^1.21.4"},"dependencies":{},"gitHead":"c155343b1e006085a2595782fec77ad8263a00ee","_id":"isval@0.1.1","_shasum":"9c4afcce7782059b510d1a3010165c5d2ec95868","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tur-nr","email":"turner296@gmail.com"},"maintainers":[{"name":"tur-nr","email":"turner296@gmail.com"}],"dist":{"shasum":"9c4afcce7782059b510d1a3010165c5d2ec95868","tarball":"https://registry.npmjs.org/isval/-/isval-0.1.1.tgz","integrity":"sha512-GtD3VyYhO49fIeduVp0EG+JkgihM1rE7WNzAPJR3ZPe1RDjf8tGanvwI0xuCLfwvhc9or2HANqaZA7/CDTCQEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICK0kWYWGMoH4w+xhsC02F6WM/9fxd5dI+4aFeadkeJIAiEAmBFQPZejD9a9wgVp8C9ZVeDe6JcuKuel7hODrzBmAXY="}]}},"0.1.2":{"name":"isval","version":"0.1.2","description":"Yet another value type validator.","main":"index.js","scripts":{"prepublish":"npm test","preversion":"npm test","test":"mocha --harmony"},"repository":{"type":"git","url":"git+https://github.com/tur-nr/node-isval.git"},"keywords":["type","checker","validator","valid"],"author":{"name":"Christopher Turner","email":"turner296@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tur-nr/node-isval/issues"},"homepage":"https://github.com/tur-nr/node-isval","devDependencies":{"mocha":"^1.21.4"},"dependencies":{},"gitHead":"0407b00c2b0ca3ce96823ea1ce690ed91442527c","_id":"isval@0.1.2","_shasum":"3e66a182979c8751f233ddac63765e13fd3a06e1","_from":".","_npmVersion":"2.13.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tur-nr","email":"turner296@gmail.com"},"maintainers":[{"name":"tur-nr","email":"turner296@gmail.com"}],"dist":{"shasum":"3e66a182979c8751f233ddac63765e13fd3a06e1","tarball":"https://registry.npmjs.org/isval/-/isval-0.1.2.tgz","integrity":"sha512-u7gPl6Nb0mSAWdScC765oI98YhR9r9swNW5H9pLNq3heWJ09y/CvcmEagOqfX9icEruCIYSYeaETjELqq4rM8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuIVd9vN4kI4bSfsirwqKe40bCF5f+6xrdnv52a7hXNQIgFf9aI3t2npk/YGn/ios53dFeQWxFx4Wz6DvbLYTUPhI="}]}},"0.1.3":{"name":"isval","version":"0.1.3","description":"Yet another value type validator.","main":"index.js","scripts":{"prepublish":"npm test","preversion":"npm test","test":"mocha --harmony"},"repository":{"type":"git","url":"git+https://github.com/tur-nr/node-isval.git"},"keywords":["type","checker","validator","valid"],"author":{"name":"Christopher Turner","email":"turner296@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tur-nr/node-isval/issues"},"homepage":"https://github.com/tur-nr/node-isval","devDependencies":{"mocha":"^1.21.4"},"dependencies":{},"gitHead":"4d5958ff3ec2739da499abd16b6efebf6d3ee250","_id":"isval@0.1.3","_shasum":"88edd9b9af6d6eb32f1045961cd177ffc85bc47a","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"tur-nr","email":"turner296@gmail.com"},"dist":{"shasum":"88edd9b9af6d6eb32f1045961cd177ffc85bc47a","tarball":"https://registry.npmjs.org/isval/-/isval-0.1.3.tgz","integrity":"sha512-0ZlarzN4ON7UVRqeu3OYG6n1oDIWBpp5MJRl4e/FpClmbaG5bd+64dH/nZUFADu0LBplS7mOS9Y3EP6wZKLl2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8Gptiilfjm8RMY1MOvyWgfS3IZ7OVB66ac/iEtUns6AIhALaQ0dzH/Uwvkoo3vkESOEPHYW4yfOLpIuCj2oTSMrYh"}]},"maintainers":[{"name":"tur-nr","email":"turner296@gmail.com"}]}},"readme":"# isval\n\nisval is a helper module that validates any given value. It overcomes common JavaScript issues with type checking, like `NaN` and `null` values.\n\n[![Build Status](https://travis-ci.org/tur-nr/node-isval.svg?branch=master)](https://travis-ci.org/tur-nr/node-isval)\n\n### Example\n\n```js\nvar isval = require('isval');\nvar string = 'I am a string';\n\nassert.ok(isval(string, 'string'));\n```\n\n## Installation\n\n### Node\n\nTo install isval in a Node application use npm.\n\n```\n$ npm install isval\n```\n\n### Browser\n\nNo tests available for the browser but you may try using it via [webpack](https://github.com/webpack/webpack).\n\n```\n$ webpack index.js isval.js\n```\n\n## Test\n\nTo run tests use npm.\n\n```\n$ npm install\n$ npm test\n```\n\n## Documentation\n\n### Basic Usage\n\nThe following types are available:\n\n* `'string'`\n* `'number'`\n* `'boolean'`\n* `'function'`\n* `'object'`\n* `'array'`\n* `'regex'`\n* `'regexp'`\n* `'date'`\n* `'null'`\n* `'undefined'`\n* `'NaN'`\n* `'arguments'`\n* `'integer'`\n* `'generator'`, `(function *(){})()`\n* `'generator*'`, `function *() {}`\n\nTypes can also be literal values:\n\n* `String`\n* `Number`\n* `Boolean`\n* `Object`\n* `null`\n* `undefined`\n* `NaN`\n\n### Instance Of\n\nPassing a constructor function will check if the value is an `instanceof` of that \"Class\".\n\n```js\nvar buffer = new ArrayBuffer();\nisval(buffer, ArrayBuffer);\n```\n\n### Truthy Values\n\nPassing no type will check for truthy values.\n\n```js\nisval(1);\nisval('true');\n```\n\n## API\n\n#### isval(*&lt;value&gt;*, *[type]*)\n\n## License\n\n[MIT](LICENSE)\n\nCopyright (c) 2014 [Christopher Turner](https://github.com/tur-nr)\n","maintainers":[{"name":"tur-nr","email":"turner296@gmail.com"}],"time":{"modified":"2022-06-19T03:10:30.471Z","created":"2014-10-06T21:56:17.774Z","0.0.1":"2014-10-06T21:56:17.774Z","0.0.2":"2014-10-07T16:50:39.526Z","0.0.3":"2015-03-02T09:23:52.908Z","0.1.1":"2015-09-02T00:32:29.041Z","0.1.2":"2015-09-07T01:32:03.973Z","0.1.3":"2015-10-28T06:21:04.397Z"},"homepage":"https://github.com/tur-nr/node-isval","keywords":["type","checker","validator","valid"],"repository":{"type":"git","url":"git+https://github.com/tur-nr/node-isval.git"},"author":{"name":"Christopher Turner","email":"turner296@gmail.com"},"bugs":{"url":"https://github.com/tur-nr/node-isval/issues"},"license":"MIT","readmeFilename":"README.md"}