{"name":"component-type","description":"Cross-browser type assertions (less broken typeof)","version":"1.2.0","keywords":["typeof","type","utility"],"dependencies":{},"main":"index.js","license":"MIT","repository":{"type":"git","url":"https://github.com/component/type.git"},"gitHead":"168462c30c13a5f777974e336c2e18d6ead64ef5","bugs":{"url":"https://github.com/component/type/issues"},"homepage":"https://github.com/component/type","_id":"component-type@1.2.0","scripts":{},"_shasum":"e279fc966ae3488ca44480103313569cffbf4c48","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.10.36","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"dominicbarnes","email":"dominic@dbarnes.info"},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},{"name":"timoxley","email":"secoif@gmail.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"queckezz","email":"fabian.eichenberger@gmail.com"},{"name":"yields","email":"yields@icloud.com"},{"name":"anthonyshort","email":"antshort@gmail.com"},{"name":"nami-doc","email":"vendethiel@hotmail.fr"},{"name":"clintwood","email":"clint@anotherway.co.za"},{"name":"thehydroimpulse","email":"dnfagnan@gmail.com"},{"name":"stephenmathieson","email":"me@stephenmathieson.com"},{"name":"trevorgerhardt","email":"trevorgerhardt@gmail.com"},{"name":"timaschew","email":"timaschew@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"}],"dist":{"shasum":"e279fc966ae3488ca44480103313569cffbf4c48","tarball":"http://registry-npm.ywwl.com/component-type/download/component-type-1.2.0.tgz","integrity":"sha512-dMn52Vn2RYXXDorFe3y7FeMXMME1U0p/yBktNYIYOuoD+/00J5FJtzwCRnGY83soF8/ER5UWmr3BOm3Vm2oouQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAST08kB8p7AekuLFw161R48EunHH6bzAAPjN4BD55QeAiEA9Y/R6bbeCag9/NfhVo+PwoYZJQrb2xwefv6ZrCedrDQ="}],"size":27994,"noattachment":false,"key":"/component-type/-/component-type-1.2.0.tgz"},"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":1442434101254,"_cnpm_publish_time":1442434101254,"dist-tags":{"latest":"2.0.0"}}