-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
26 lines (26 loc) · 1.58 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"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",
"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",
"readmeFilename": "Readme.md",
"bugs": {
"url": "https://github.com/ForbesLindesay/type-of/issues"
},
"homepage": "https://github.com/ForbesLindesay/type-of",
"_id": "type-of@2.0.0",
"_from": "type-of@~2"
}