{"dist":{"shasum":"2cbf1bb4855e9b236dd14f9ae7e06cb35c71576e","tarball":"https://registry.npmjs.org/simple-is/-/simple-is-0.1.0.tgz","integrity":"sha512-/s6DE5PSTIzGp/NeJ/GMHG59Z8bHmD/dNTp5Df0RmL4phs6+n6BkFvGqWhXLCuKd/KNQF1Fo5jUMqugjvJRymw==","signatures":[{"sig":"MEYCIQC4krER0Q0hUE208fD+Xfa9U2ePT87wqykamQ0n6vlgfQIhAOjr5N1EXkim4XjJ5BRlOXxfkWyrNDX0kYV9xB48WV+v","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"simple-is.js","name":"simple-is","_from":"../simple-is.tgz","author":{"name":"Olov Lassus","email":"olov.lassus@gmail.com"},"readme":"# simple-is.js\nA maximally minimal type-testing library. Use it to make your code\nmore readable. Works in node and browsers.\n\n\n\n## Usage\n`var is = require(\"simple-is\");`\n\nUse `is.number(x)` instead of `typeof x === \"number\"` (also `is.boolean`, `is.string`, `is.function`).\n\nUse `is.nan(x)` instead of `typeof x === \"number\" && isNaN(x)`, `x !== x` or ES6 `Number.isNaN(x)`.\n\nUse `is.object(x)` instead of `x !== null && typeof x === \"object\"`.\n\nUse `is.primitive(x)` instead of `x === null || x === undefined || typeof x === \"boolean\" || typeof x === \"number\" || typeof x === \"string\"` (verbose on purpose).\n\nUse `is.array(x)` instead of ES5 `Array.isArray`.\n\nUse `is.finitenumber(x)` instead of `typeof x === \"number\" && isFinite(x)` or ES6 `Number.isFinite(x)`.\n\nUse `is.someof(x, [\"first\", 2, obj])` instead of (usually) `x === \"first\" || x === 2 || x === obj` or (alternatively)  `[\"first\", 2, obj].indexOf(x) >= 0`. Great for reducing copy and paste mistake in `if`-conditions and for making them more readable.\n\nUse `is.noneof(x, [\"first\", 2, obj])` instead of (usually) `x !== \"first\" && x !== 2 && x !== obj` or (alternatively)  `[\"first\", 2, obj].indexOf(x) === -1`.\n\nUse `is.in(x, \"name\")` instead of `Object.prototype.hasOwnProperty.call(x, \"name\")`.\n\nThat's it.\n\n\n\n## Installation\n\n### Node\nInstall using npm\n\n    npm install simple-is\n\n```javascript\nvar is = require(\"simple-is\");\n```\n\n### Browser\nClone the repo and include it in a script tag\n\n    git clone https://github.com/olov/simple-is.git\n\n```html\n<script src=\"simple-is/simple-is.js\"></script>\n```\n","license":"MIT","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"olov","email":"olov.lassus@gmail.com"},"keywords":["is","type","test","check","assert"],"_resolved":"../simple-is.tgz","repository":{"url":"https://github.com/olov/simple-is.git","type":"git"},"_npmVersion":"1.2.18","description":"maximally minimal type-testing library","maintainers":[{"name":"olov","email":"olov.lassus@gmail.com"}],"readmeFilename":"README.md","devDependencies":{"tap":"~0.4.0"},"_id":"simple-is@0.1.0","version":"0.1.0"}