{"_id":"typeof","_rev":"10-c12a12d3ba28963331315da5f80ab170","name":"typeof","description":"Node module. typeOf('a string') == 'string', typeOf([]) == 'array', etc.. Also supports named functions detections aka javascript classes","dist-tags":{"latest":"1.0.0"},"versions":{"0.9.0":{"name":"typeof","version":"0.9.0","description":"Node module. typeOf('a string') == 'string', typeOf([]) == 'array', etc..","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha -R spec --compilers coffee:coffee-script test.coffee"},"repository":{"type":"git","url":"http://github.com/CodingFu/typeof"},"keywords":["typeof","type"],"author":{"name":"Seva Rybakov"},"license":"MIT","dependencies":{"coffee-script":"~1.4.0","mocha":"~1.6.0","assert":"~0.4.9"},"readme":"# typeof\n\nsmall node.js module that extends functionality of native typeof\ninspired by Batman.js typeOf util\n\n## Usage:\n\n```bash\n$ npm install typeof\n```\n\n```javascript\nvar typeOf = require('typeof');\n\nconsole.log(typeOf(\"a string\"));\nconsole.log(typeOf([1, 2, 3, \"array\"]));\nconsole.log(typeOf(null));\n```\n\n```\n\"string\"\n\"array\"\n\"null\"\n```\n","_id":"typeof@0.9.0","dist":{"shasum":"0a52ff3cf1ed4d5b24c51a7b35b5e22edb432576","tarball":"https://registry.npmjs.org/typeof/-/typeof-0.9.0.tgz","integrity":"sha512-VpJnW4Qj5nCaMhlKOx6s3Wmjj6iEUQqFjXyP1rBrmwrbUlxb/8TywSCpexQZldCo1ab4UtEtjMe4msyGvZ/QTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAIHHaeL6EpOFjDJ8KQyOib890egHjLlLFKwPP4o6SB1AiEAuuKgPsPYdD6ZWRLEFEb0bH1uuScj5HLHe97yAW0U1Bo="}]},"maintainers":[{"name":"codingfu","email":"coding.fu@gmail.com"}]},"0.9.1":{"name":"typeof","version":"0.9.1","description":"Node module. typeOf('a string') == 'string', typeOf([]) == 'array', etc..","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha -R spec --compilers coffee:coffee-script test.coffee"},"repository":{"type":"git","url":"http://github.com/CodingFu/typeof"},"keywords":["typeof","type"],"author":{"name":"Seva Rybakov"},"license":"MIT","dependencies":{"coffee-script":"~1.4.0","mocha":"~1.6.0","assert":"~0.4.9"},"readme":"# typeof\n\nsmall node.js module that extends functionality of native typeof\ninspired by Batman.js typeOf util\n**-------------------------------**\n**UPD:** now it returns lowercased name of any javascript class.\n\n## Usage:\n\n```bash\n$ npm install typeof\n```\n\n```javascript\nvar typeOf = require('typeof');\n\nconsole.log(typeOf(\"a string\"));\nconsole.log(typeOf([1, 2, 3, \"array\"]));\nconsole.log(typeOf(null));\nconsole.log(typeOf(new Buffer(0)));\n\nfunction MyClass() {\n  this.is = \"class constructor\"  \n}\nconsole.log(typeOf(new MyClass));\n```\n\n```\n\"string\"\n\"array\"\n\"null\"\n\"buffer\"\n\"myclass\"\n```\n","readmeFilename":"README.md","_id":"typeof@0.9.1","dist":{"shasum":"697283880fd6d68c8b9beb9e9e8f42365b77d3ae","tarball":"https://registry.npmjs.org/typeof/-/typeof-0.9.1.tgz","integrity":"sha512-SAsirT04J/poZ62qdnrIsf0Ey0swIyVKMbg/qa2mVQN7UM9SfIPBhm+IwYY9yHLaGauRCkTAAQsoyLw9UbW7HA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIHSKK9htOfYBK38naMGL4j21A/Sy0VNy0gYo5Ugc4DFnAh9s9VtAEK9RKImYq/ozgBllXXjOEC2qqpjtY3XwB7SO"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"codingfu","email":"coding.fu@gmail.com"},"maintainers":[{"name":"codingfu","email":"coding.fu@gmail.com"}]},"1.0.0":{"name":"typeof","version":"1.0.0","description":"Node module. typeOf('a string') == 'string', typeOf([]) == 'array', etc.. Also supports named functions detections aka javascript classes","main":"index.js","scripts":{"test":"mocha -R spec --compilers coffee:coffee-script test.coffee"},"repository":{"type":"git","url":"http://github.com/CodingFu/typeof"},"keywords":["typeof","type"],"author":{"name":"Seva Rybakov"},"license":"MIT","dependencies":{},"devDependencies":{"coffee-script":"~1.4.0","mocha":"~1.6.0","assert":"~0.4.9"},"readme":"# typeof\n\nSmall node.js module that dramatically extends functionality of native typeof\n\nInspired by Batman.js typeOf util\n\n**UPD:** now it returns lowercased name of any javascript class. Thanks to @BallBearing for idea\n\n## Usage:\n\n```bash\n$ npm install typeof\n```\n\n```javascript\nvar typeOf = require('typeof');\n\nconsole.log(typeOf(\"a string\"));\n// -> \"string\"\n\nconsole.log(typeOf([1, 2, 3, \"array\"]));\n// -> \"array\"\n\nconsole.log(typeOf(null));\n// -> \"null\"\n\nconsole.log(typeOf(new Buffer(0)));\n// -> \"buffer\"\n\nfunction MyClass() {\n  this.is = \"class constructor\"  \n}\nconsole.log(typeOf(new MyClass));\n// ->\"myclass\"\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/CodingFu/typeof/issues"},"_id":"typeof@1.0.0","dist":{"shasum":"9c84403f2323ae5399167275497638ea1d2f2440","tarball":"https://registry.npmjs.org/typeof/-/typeof-1.0.0.tgz","integrity":"sha512-Pze0mIxYXhaJdpw1ayMzOA7rtGr1OmsTY/Z+FWtRKIqXFz6aoDLjqdbWE/tcIBSC8nhnVXiRrEXujodR/xiFAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICay1fgPjCtWZG97zRDdb14k3BJInEiYXrgrwysM4swWAiBJZ3L4dSE0fUJgmTS0qm9ZgREkKtLarct5QiYo/NFqiA=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"codingfu","email":"coding.fu@gmail.com"},"maintainers":[{"name":"codingfu","email":"coding.fu@gmail.com"}]}},"readme":"# typeof\n\nsmall node.js module that extends functionality of native typeof\ninspired by Batman.js typeOf util\n\n## Usage:\n\n```bash\n$ npm install typeof\n```\n\n```javascript\nvar typeOf = require('typeof');\n\nconsole.log(typeOf(\"a string\"));\nconsole.log(typeOf([1, 2, 3, \"array\"]));\nconsole.log(typeOf(null));\n```\n\n```\n\"string\"\n\"array\"\n\"null\"\n```\n","maintainers":[{"name":"codingfu","email":"coding.fu@gmail.com"}],"time":{"modified":"2022-06-28T01:45:17.226Z","created":"2012-10-30T23:48:50.214Z","0.9.0":"2012-10-30T23:48:52.107Z","0.9.1":"2013-04-10T16:35:53.768Z","1.0.0":"2013-11-21T11:08:22.604Z"},"author":{"name":"Seva Rybakov"},"repository":{"type":"git","url":"http://github.com/CodingFu/typeof"},"users":{"rocket0191":true}}