{"_id":"component-type","_rev":"51-13b1304eccd6defc2e8ce2301bb1b134","name":"component-type","description":"Type assertions aka less-broken `typeof`","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"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":"https://registry.npmjs.org/component-type/-/component-type-1.0.0.tgz","integrity":"sha512-qzUg4SGDH6KFYlcklmeZwucbtosh/XGwuIffqXAhC1dZyjO7Xu1UuaxwKRY29EncuBj/DH+h6Zot3AdZS6xdFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDucrhjmjQXgv/WuPwrQkfNl7A9EybptBgB6au8WPcFSAiEA2A8I37cIerCqIBYhFAL1JxH+GiX4m0k+Av/QRnpNuW0="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"maxogden","email":"mogden@gmail.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.com"}],"directories":{}},"1.1.0":{"name":"component-type","description":"Cross-browser type assertions (less broken typeof)","version":"1.1.0","keywords":["typeof","type","utility"],"dependencies":{},"main":"index.js","repository":{"type":"git","url":"https://github.com/component/type.git"},"gitHead":"44c73293c7e2c71d6598ed4e58f34084f862f8d1","bugs":{"url":"https://github.com/component/type/issues"},"homepage":"https://github.com/component/type","_id":"component-type@1.1.0","scripts":{},"_shasum":"95b666aad53e5c8d1f2be135c45b5d499197c0c5","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.32","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"maxogden","email":"mogden@gmail.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"}],"dist":{"shasum":"95b666aad53e5c8d1f2be135c45b5d499197c0c5","tarball":"https://registry.npmjs.org/component-type/-/component-type-1.1.0.tgz","integrity":"sha512-rLfU88D3tytip79EqPsLD+ND+Fl8HsIhz5KkOEeNidNVN1GUO9AWEs8+DPLtZR63BecAC883DuF2GZ1DM78BbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDs3FZQTk2zje2le6IRRtQ/fz2nyIsxQbLPrBY+kkwrDQIgZwkrpZ53VKLsKyveVmWibsTBi8o/U79ALAgGYUr6m04="}]},"directories":{}},"1.2.0":{"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":"https://registry.npmjs.org/component-type/-/component-type-1.2.0.tgz","integrity":"sha512-dMn52Vn2RYXXDorFe3y7FeMXMME1U0p/yBktNYIYOuoD+/00J5FJtzwCRnGY83soF8/ER5UWmr3BOm3Vm2oouQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAST08kB8p7AekuLFw161R48EunHH6bzAAPjN4BD55QeAiEA9Y/R6bbeCag9/NfhVo+PwoYZJQrb2xwefv6ZrCedrDQ="}]},"directories":{}},"1.2.1":{"name":"component-type","description":"Cross-browser type assertions (less broken typeof)","version":"1.2.1","keywords":["typeof","type","utility"],"dependencies":{},"main":"index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/component/type.git"},"gitHead":"a581cc14d0b46b8a4c96e2fc99fa76cd7faef5d9","bugs":{"url":"https://github.com/component/type/issues"},"homepage":"https://github.com/component/type#readme","_id":"component-type@1.2.1","scripts":{},"_shasum":"8a47901700238e4fc32269771230226f24b415a9","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"anthonyshort","email":"antshort@gmail.com"},{"name":"clintwood","email":"clint@anotherway.co.za"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dominicbarnes","email":"dominic@dbarnes.info"},{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"},{"name":"nami-doc","email":"vendethiel@hotmail.fr"},{"name":"queckezz","email":"fabian.eichenberger@gmail.com"},{"name":"stephenmathieson","email":"me@stephenmathieson.com"},{"name":"thehydroimpulse","email":"dnfagnan@gmail.com"},{"name":"timaschew","email":"timaschew@gmail.com"},{"name":"timoxley","email":"secoif@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"trevorgerhardt","email":"trevorgerhardt@gmail.com"},{"name":"yields","email":"yields@icloud.com"}],"dist":{"shasum":"8a47901700238e4fc32269771230226f24b415a9","tarball":"https://registry.npmjs.org/component-type/-/component-type-1.2.1.tgz","integrity":"sha512-Kgy+2+Uwr75vAi6ChWXgHuLvd+QLD7ssgpaRq2zCvt80ptvAfMc/hijcJxXkBa2wMlEZcJvC2H8Ubo+A9ATHIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGyrI2XNlp+csoLqTJvXQKz3ONvgm6IfSwTL4ya6h4UWAiA8OCV5hbsg/J/BnE5HbkXGEeR9S7GjctJFpqwVuBF/7g=="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/component-type-1.2.1.tgz_1458074453909_0.014398212544620037"},"directories":{}},"1.2.2":{"name":"component-type","description":"Cross-browser type assertions (less broken typeof)","version":"1.2.2","keywords":["typeof","type","utility"],"dependencies":{},"main":"index.js","license":"MIT","funding":"https://github.com/sponsors/sindresorhus","repository":{"type":"git","url":"git+https://github.com/sindresorhus/component-type.git"},"gitHead":"a581cc14d0b46b8a4c96e2fc99fa76cd7faef5d9","bugs":{"url":"https://github.com/sindresorhus/component-type/issues"},"homepage":"https://github.com/sindresorhus/component-type#readme","_id":"component-type@1.2.2","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-99VUHREHiN5cLeHm3YLq312p6v+HUEcwtLCAtelvUDI6+SH5g5Cr85oNR2S1o6ywzL0ykMbuwLzM2ANocjEOIA==","shasum":"4458ecc0c1871efc6288bfaff0cbdab08141d079","tarball":"https://registry.npmjs.org/component-type/-/component-type-1.2.2.tgz","fileCount":9,"unpackedSize":119694,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJhrD/S6IuCbhXE43L2lf1egKMTR6su3WTEsZI54VZnAIgOff1J2y+DJ311igW7JYMrJv+/FcKYIK3nQfOLS2chqg="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"timaschew","email":"timaschew@gmail.com"},{"name":"anthonyshort","email":"antshort@gmail.com"},{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},{"name":"nami-doc","email":"vendethiel@hotmail.fr"},{"name":"clintwood","email":"clint@anotherway.co.za"},{"name":"trevorgerhardt","email":"trevorgerhardt@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"thehydroimpulse","email":"dnfagnan@gmail.com"},{"name":"dominicbarnes","email":"dominic@segment.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"yields","email":"yields@icloud.com"},{"name":"stephenmathieson","email":"me@stephenmathieson.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"timoxley","email":"secoif@gmail.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"},{"name":"queckezz","email":"fabian.eichenberger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/component-type_1.2.2_1700161305577_0.8999440302227528"},"_hasShrinkwrap":false},"2.0.0":{"name":"component-type","version":"2.0.0","description":"Type assertions aka less-broken `typeof`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/component-type.git"},"funding":"https://github.com/sponsors/sindresorhus","exports":{"types":"./index.d.ts","default":"./index.js"},"main":"./index.js","types":"./index.d.ts","sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava"},"keywords":["typeof","type","types","check","utility"],"devDependencies":{"ava":"^5.3.1","xo":"^0.56.0"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"dc939b473f0f1c2547115cdfca677b2044627605","bugs":{"url":"https://github.com/sindresorhus/component-type/issues"},"homepage":"https://github.com/sindresorhus/component-type#readme","_id":"component-type@2.0.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-/1+d/k0Al0uzg4rFAz9fbYOTnT20JYgN7SoaRr5x2cz7kH4Mtj+GQPh7W9UocpzFtxSL8flv6qAOOfJvQGqUjg==","shasum":"bb11dbdeb772e6ad0f98b0d08322793d46ece7f9","tarball":"https://registry.npmjs.org/component-type/-/component-type-2.0.0.tgz","fileCount":5,"unpackedSize":4049,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4G8sKo8TZAq+8wrUFc49seP1xiJE0XRQqRVFq0zRmnwIhALyEkPWurHdzYGN1Ql1+lQlQMePpTfNINEyH/+QSEZBI"}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"timaschew","email":"timaschew@gmail.com"},{"name":"anthonyshort","email":"antshort@gmail.com"},{"name":"ianstormtaylor","email":"ian@ianstormtaylor.com"},{"name":"nami-doc","email":"vendethiel@hotmail.fr"},{"name":"clintwood","email":"clint@anotherway.co.za"},{"name":"trevorgerhardt","email":"trevorgerhardt@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"thehydroimpulse","email":"dnfagnan@gmail.com"},{"name":"dominicbarnes","email":"dominic@segment.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"yields","email":"yields@icloud.com"},{"name":"stephenmathieson","email":"me@stephenmathieson.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"timoxley","email":"secoif@gmail.com"},{"name":"jonathanong","email":"jonathanrichardong@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"maxogden","email":"max@maxogden.com"},{"name":"queckezz","email":"fabian.eichenberger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/component-type_2.0.0_1700166952730_0.6170664237697614"},"_hasShrinkwrap":false}},"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","maintainers":[{"email":"sindresorhus@gmail.com","name":"sindresorhus"}],"time":{"modified":"2023-11-17T17:48:42.168Z","created":"2014-01-06T19:17:17.072Z","1.0.0":"2014-01-06T19:17:17.072Z","1.1.0":"2014-12-08T13:27:21.562Z","1.2.0":"2015-09-16T20:08:21.254Z","1.2.1":"2016-03-15T20:40:54.586Z","1.2.2":"2023-11-16T19:01:45.746Z","2.0.0":"2023-11-16T20:35:52.958Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/component-type#readme","keywords":["typeof","type","types","check","utility"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/component-type.git"},"bugs":{"url":"https://github.com/sindresorhus/component-type/issues"},"users":{"xek":true,"vkarpov15":true},"license":"MIT"}