{"_id":"type-of","_rev":"288418","name":"type-of","description":"Type assertions aka less-broken typeof.","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"time":{"modified":"2021-06-03T18:44:33.000Z","created":"2013-06-28T04:23:24.940Z","2.0.1":"2014-01-06T20:28:06.503Z","2.0.0":"2013-06-28T04:23:24.940Z"},"users":{"taterbase":true,"rootscript":true,"dylanh724":true,"bardleware":true},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/type-of.git"},"versions":{"2.0.1":{"name":"type-of","version":"2.0.1","description":"Type assertions aka less-broken typeof.","keywords":[],"dependencies":{},"devDependencies":{"tape":"~2.3.2"},"scripts":{"test":"node test/tests.js"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/type-of.git"},"license":"MIT","testling":{"files":"test/tests.js","browsers":["iexplore/8.0","iexplore/9.0","iexplore/10.0","chrome/30.0","chrome/31.0","chrome/canary","firefox/4.0","firefox/10.0","firefox/15.0","firefox/20.0","firefox/21.0","firefox/22.0","firefox/23.0","firefox/24.0","firefox/25.0","firefox/nightly","opera/11.0","opera/17.0","opera/next","safari/5.0.5","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0"]},"readmeFilename":"Readme.md","bugs":{"url":"https://github.com/ForbesLindesay/type-of/issues"},"_id":"type-of@2.0.1","dist":{"shasum":"e72a1741896568e9f628378d816d6912f7f23972","size":2307,"noattachment":false,"key":"/type-of/-/type-of-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/type-of/download/type-of-2.0.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1389040086503,"_cnpm_publish_time":1389040086503,"_hasShrinkwrap":false},"2.0.0":{"name":"type-of","version":"2.0.0","description":"Type assertions aka less-broken typeof.","keywords":[],"dependencies":{},"devDependencies":{"mocha":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/ForbesLindesay/type-of.git"},"license":"MIT","readmeFilename":"Readme.md","bugs":{"url":"https://github.com/ForbesLindesay/type-of/issues"},"_id":"type-of@2.0.0","dist":{"shasum":"9fd7d99a20f45af8d9fe33d44ad532e34d769198","size":2048,"noattachment":false,"key":"/type-of/-/type-of-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type-of/download/type-of-2.0.0.tgz"},"_resolved":"c:\\Users\\Forbes\\AppData\\Local\\Temp\\npm-6912\\1372393338768-0.7373845798429102\\tmp.tgz","_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1372393404940,"_cnpm_publish_time":1372393404940,"_hasShrinkwrap":false}},"readme":"# type-of\r\n\r\n  Type assertions aka less-broken `typeof`.\r\n\r\n\r\n[![Build Status](https://travis-ci.org/ForbesLindesay/type-of.png?branch=master)](https://travis-ci.org/ForbesLindesay/type-of)\r\n[![Dependency Status](https://gemnasium.com/ForbesLindesay/type-of.png)](https://gemnasium.com/ForbesLindesay/type-of)\r\n[![NPM version](https://badge.fury.io/js/type-of.png)](http://badge.fury.io/js/type-of)\r\n\r\n## Example\r\n\r\n```js\r\nvar type = require('type-of')\r\n\r\nvar obj = new Date\r\nif (type(obj) == 'date') ...\r\n```\r\n\r\n## API\r\n\r\n```js\r\ntype(new Date) == 'date'\r\ntype({}) == 'object'\r\ntype(null) == 'null'\r\ntype(undefined) == 'undefined'\r\ntype(\"hey\") == 'string'\r\ntype(true) == 'boolean'\r\ntype(false) == 'boolean'\r\ntype(12) == 'number'\r\ntype(type) == 'function'\r\ntype(/asdf/) == 'regexp'\r\ntype((function(){ return arguments })()) == 'arguments'\r\ntype([]) == 'array'\r\ntype(document.createElement('div')) == 'element'\r\n```\r\n\r\n## License\r\n\r\n  MIT\r\n","_attachments":{},"readmeFilename":"Readme.md","bugs":{"url":"https://github.com/ForbesLindesay/type-of/issues"},"license":"MIT"}