182 lines
12 KiB
JSON
182 lines
12 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "kind-of@^3.0.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "kind-of",
|
||
|
"name": "kind-of",
|
||
|
"rawSpec": "^3.0.2",
|
||
|
"spec": ">=3.0.2 <4.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/micromatch"
|
||
|
]
|
||
|
],
|
||
|
"_from": "kind-of@>=3.0.2 <4.0.0",
|
||
|
"_id": "kind-of@3.2.2",
|
||
|
"_inCache": true,
|
||
|
"_location": "/kind-of",
|
||
|
"_nodeVersion": "7.7.3",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "packages-18-east.internal.npmjs.com",
|
||
|
"tmp": "tmp/kind-of-3.2.2.tgz_1494958899918_0.23780996026471257"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "jonschlinkert",
|
||
|
"email": "github@sellside.com"
|
||
|
},
|
||
|
"_npmVersion": "4.5.0",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "kind-of@^3.0.2",
|
||
|
"scope": null,
|
||
|
"escapedName": "kind-of",
|
||
|
"name": "kind-of",
|
||
|
"rawSpec": "^3.0.2",
|
||
|
"spec": ">=3.0.2 <4.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/align-text",
|
||
|
"/is-number",
|
||
|
"/micromatch"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
|
||
|
"_shasum": "31ea21a734bab9bbb0f32466d893aea51e4a3c64",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "kind-of@^3.0.2",
|
||
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/micromatch",
|
||
|
"author": {
|
||
|
"name": "Jon Schlinkert",
|
||
|
"url": "https://github.com/jonschlinkert"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/jonschlinkert/kind-of/issues"
|
||
|
},
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "David Fox-Powell",
|
||
|
"url": "https://dtothefp.github.io/me"
|
||
|
},
|
||
|
{
|
||
|
"name": "Jon Schlinkert",
|
||
|
"url": "http://twitter.com/jonschlinkert"
|
||
|
},
|
||
|
{
|
||
|
"name": "Ken Sheedlo",
|
||
|
"url": "kensheedlo.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "laggingreflex",
|
||
|
"url": "https://github.com/laggingreflex"
|
||
|
},
|
||
|
{
|
||
|
"name": "Miguel Mota",
|
||
|
"url": "https://miguelmota.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Peter deHaan",
|
||
|
"url": "http://about.me/peterdehaan"
|
||
|
}
|
||
|
],
|
||
|
"dependencies": {
|
||
|
"is-buffer": "^1.1.5"
|
||
|
},
|
||
|
"description": "Get the native type of a value.",
|
||
|
"devDependencies": {
|
||
|
"ansi-bold": "^0.1.1",
|
||
|
"benchmarked": "^1.0.0",
|
||
|
"browserify": "^14.3.0",
|
||
|
"glob": "^7.1.1",
|
||
|
"gulp-format-md": "^0.1.12",
|
||
|
"mocha": "^3.3.0",
|
||
|
"type-of": "^2.0.1",
|
||
|
"typeof": "^1.0.0"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "31ea21a734bab9bbb0f32466d893aea51e4a3c64",
|
||
|
"tarball": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">=0.10.0"
|
||
|
},
|
||
|
"files": [
|
||
|
"index.js"
|
||
|
],
|
||
|
"gitHead": "0ffe67cf12f5396047c1bacf04232b7deeb24063",
|
||
|
"homepage": "https://github.com/jonschlinkert/kind-of",
|
||
|
"keywords": [
|
||
|
"arguments",
|
||
|
"array",
|
||
|
"boolean",
|
||
|
"check",
|
||
|
"date",
|
||
|
"function",
|
||
|
"is",
|
||
|
"is-type",
|
||
|
"is-type-of",
|
||
|
"kind",
|
||
|
"kind-of",
|
||
|
"number",
|
||
|
"object",
|
||
|
"of",
|
||
|
"regexp",
|
||
|
"string",
|
||
|
"test",
|
||
|
"type",
|
||
|
"type-of",
|
||
|
"typeof",
|
||
|
"types"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "jonschlinkert",
|
||
|
"email": "github@sellside.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "doowb",
|
||
|
"email": "brian.woodward@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "kind-of",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# kind-of [![NPM version](https://img.shields.io/npm/v/kind-of.svg?style=flat)](https://www.npmjs.com/package/kind-of) [![NPM monthly downloads](https://img.shields.io/npm/dm/kind-of.svg?style=flat)](https://npmjs.org/package/kind-of) [![NPM total downloads](https://img.shields.io/npm/dt/kind-of.svg?style=flat)](https://npmjs.org/package/kind-of) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/kind-of.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/kind-of)\n\n> Get the native type of a value.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save kind-of\n```\n\n## Install\n\nInstall with [bower](https://bower.io/)\n\n```sh\n$ bower install kind-of --save\n```\n\n## Usage\n\n> es5, browser and es6 ready\n\n```js\nvar kindOf = require('kind-of');\n\nkindOf(undefined);\n//=> 'undefined'\n\nkindOf(null);\n//=> 'null'\n\nkindOf(true);\n//=> 'boolean'\n\nkindOf(false);\n//=> 'boolean'\n\nkindOf(new Boolean(true));\n//=> 'boolean'\n\nkindOf(new Buffer(''));\n//=> 'buffer'\n\nkindOf(42);\n//=> 'number'\n\nkindOf(new Number(42));\n//=> 'number'\n\nkindOf('str');\n//=> 'string'\n\nkindOf(new String('str'));\n//=> 'string'\n\nkindOf(arguments);\n//=> 'arguments'\n\nkindOf({});\n//=> 'object'\n\nkindOf(Object.create(null));\n//=> 'object'\n\nkindOf(new Test());\n//=> 'object'\n\nkindOf(new Date());\n//=> 'date'\n\nkindOf([]);\n//=> 'array'\n\nkindOf([1, 2, 3]);\n//=> 'array'\n\nkindOf(new Array());\n//=> 'array'\n\nkindOf(/foo/);\n//=> 'regexp'\n\nkindOf(new RegExp('foo'));\n//=> 'regexp'\n\nkindOf(function () {});\n//=> 'function'\n\nkindOf(function * () {});\n//=> 'function'\n\nkindOf(new Function());\n//=> 'function'\n\nkindOf(new Map());\n//=> 'map'\n\nkindOf(new WeakMap());\n//=> 'weakmap'\n\nkindOf(new Set());\n//=> 'set'\n\nkindOf(new WeakSet());\n//=> 'weakset'\n\nkindOf(Symbol('str'));\n//=> 'symbol'\n\nkindOf(new Int8Array());\n//=> 'int8array'\n\nkindOf(new Uint8Array());\n//=> 'uint8array'\n\nkindOf(new Uint8ClampedArray());\n//=> 'uint8clampedarray'\n\nkindOf(new Int16Array());\n//=> 'int16array'\n\nkindOf(new Uint16Array());\n//=> 'uint16array'\n\nkindOf(new Int32Array());\n//=> 'int32array'\n\nkindOf(new Uint32Array());\n//=> 'uint32array'\n\nkindOf(new Float32Array());\n//=> 'float32array'\n\nkindOf(new Float64Array());\n//=> 'float64array'\n```\n\n## Benchmarks\n\nBenchmarked against [typeof](http://github.com/CodingFu/typeof) and [type-of](https://github.com/ForbesLindesay/type-of).\nNote that performaces is slower for es6 features `Map`, `WeakMap`, `Set` and `WeakSet`.\n\n```bash\n#1: array\n current x 23,329,397 ops/sec ±0.82% (94 runs sampled)\n lib-type-of x 4,170,273 ops/sec ±0.55% (94 runs sampled)\n lib-typeof x 9,686,935 ops/sec ±0.59% (98 runs sampled)\n\n#2: boolean\n current x 27,197,115 ops/sec ±0.85% (94 runs sampled)\n lib-type-of x 3,145,791 ops/sec ±0.73% (97 runs sampled)\n lib-typeof x 9,199,562 ops/sec ±0.44% (99 runs sampled)\n\n#3: date\n current x 20,190,117 ops/sec ±0.86% (92 runs sampled)\n lib-type-of x 5,166,970 ops/sec ±0.74% (94 runs sampled)\n lib-typeof x 9,610,821 ops/sec ±0.50% (96 runs sampled)\n\n#4: function\n current x 23,855,460 ops/sec ±0.60% (97 runs sampled)\n lib-type-of x 5,667,740 ops/sec ±0.54% (100 runs sampled)\n lib-typeof x 10,010,644 ops/sec ±0.44% (100 runs sampled)\n\n#5: null\n current x 27,061,047 ops/sec ±0.97% (96 runs sampled)\n lib-type-of x 13,965,573 ops/sec ±0.62% (97 runs sampled)\n lib-typeof x 8,460,194 ops/sec ±0.61% (97 runs sampled)\n\n#6: number\n current x 25,075,682 ops/sec ±0.53% (99 runs sampled)\n lib-type-of x 2,266,405 ops/sec ±0.41% (98 runs sampled)\n lib-typeof x 9,821,481 ops/sec ±0.45% (99 runs sampled)\n\n#7: object\n current x 3,348,980 ops/sec ±0.49% (99 runs sampled)\n lib-type-of x 3,245,138 ops/sec ±0.60% (94 runs sampled)\n lib-typeof x 9,262,952 ops/sec ±0.59% (99 runs sampled)\n\n#8: regex\n current x 21,284,827 ops/sec ±0.72% (96 runs sampled)\n lib-type-of x 4,689,241 ops/sec ±0.43% (100 runs
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/jonschlinkert/kind-of.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"prepublish": "browserify -o browser.js -e index.js -s index --bare",
|
||
|
"test": "mocha"
|
||
|
},
|
||
|
"verb": {
|
||
|
"related": {
|
||
|
"list": [
|
||
|
"is-glob",
|
||
|
"is-number",
|
||
|
"is-primitive"
|
||
|
]
|
||
|
},
|
||
|
"toc": false,
|
||
|
"layout": "default",
|
||
|
"tasks": [
|
||
|
"readme"
|
||
|
],
|
||
|
"plugins": [
|
||
|
"gulp-format-md"
|
||
|
],
|
||
|
"lint": {
|
||
|
"reflinks": true
|
||
|
},
|
||
|
"reflinks": [
|
||
|
"verb"
|
||
|
]
|
||
|
},
|
||
|
"version": "3.2.2"
|
||
|
}
|