{"name":"component-type","description":"Cross-browser type assertions (less broken typeof)","version":"1.0.0","keywords":["typeof","type","utility"],"dependencies":{},"main":"index.js","repository":{"type":"git","url":"https://github.com/component/type.git"},"bugs":{"url":"https://github.com/component/type/issues"},"homepage":"https://github.com/component/type","_id":"component-type@1.0.0","dist":{"shasum":"1ed8812e32dd65099d433570757f111ea3d3d871","tarball":"http://registry-npm.ywwl.com/component-type/download/component-type-1.0.0.tgz","integrity":"sha512-qzUg4SGDH6KFYlcklmeZwucbtosh/XGwuIffqXAhC1dZyjO7Xu1UuaxwKRY29EncuBj/DH+h6Zot3AdZS6xdFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDucrhjmjQXgv/WuPwrQkfNl7A9EybptBgB6au8WPcFSAiEA2A8I37cIerCqIBYhFAL1JxH+GiX4m0k+Av/QRnpNuW0="}],"size":27737,"noattachment":false,"key":"/component-type/-/component-type-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"maxogden","email":"mogden@gmail.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}],"directories":{},"readme":"# component-type\n\n> Type assertions aka less-broken `typeof`\n\n## Install\n\n```sh\nnpm install component-type\n```\n\n## Usage\n\n```js\nimport type from 'component-type';\n\nconst date = new Date();\n\nconsole.log(type(date));\n//=> 'date'\n```\n\n## API\n\n```js\ntype(new Date) === 'date'\ntype({}) === 'object'\ntype(null) === 'null'\ntype(undefined) === 'undefined'\ntype('hey') === 'string'\ntype(true) === 'boolean'\ntype(false) === 'boolean'\ntype(12) === 'number'\ntype(type) === 'function'\ntype(/asdf/) === 'regexp'\ntype((function(){ return arguments })()) === 'arguments'\ntype([]) === 'array'\ntype(document.createElement('div')) === 'element'\ntype(NaN) === 'nan'\ntype(new Error('Oh noes')) === 'error'\ntype(new Buffer) === 'buffer'\n```\n\nIt makes no guarantees about the correctness when fed untrusted user-input.\n","publish_time":1389035837072,"_cnpm_publish_time":1389035837072,"dist-tags":{"latest":"2.0.0"}}