pnpm
Version:
Fast, disk space efficient package manager
157 lines (156 loc) • 7.68 kB
JSON
{
"_args": [
[
{
"raw": "array-includes@^3.0.3",
"scope": null,
"escapedName": "array-includes",
"name": "array-includes",
"rawSpec": "^3.0.3",
"spec": ">=3.0.3 <4.0.0",
"type": "range"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/graph-sequencer"
]
],
"_from": "array-includes@>=3.0.3 <4.0.0",
"_id": "array-includes@3.0.3",
"_inCache": true,
"_location": "/array-includes",
"_nodeVersion": "7.9.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/array-includes-3.0.3.tgz_1492584332066_0.8674911158159375"
},
"_npmUser": {
"name": "ljharb",
"email": "ljharb@gmail.com"
},
"_npmVersion": "4.2.0",
"_phantomChildren": {},
"_requested": {
"raw": "array-includes@^3.0.3",
"scope": null,
"escapedName": "array-includes",
"name": "array-includes",
"rawSpec": "^3.0.3",
"spec": ">=3.0.3 <4.0.0",
"type": "range"
},
"_requiredBy": [
"/graph-sequencer"
],
"_resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.0.3.tgz",
"_shasum": "184b48f62d92d7452bb31b323165c7f8bd02266d",
"_shrinkwrap": null,
"_spec": "array-includes@^3.0.3",
"_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/graph-sequencer",
"author": {
"name": "Jordan Harband",
"email": "ljharb@gmail.com",
"url": "http://ljharb.codes"
},
"bugs": {
"url": "https://github.com/ljharb/array-includes/issues"
},
"contributors": [
{
"name": "Jordan Harband",
"email": "ljharb@gmail.com",
"url": "http://ljharb.codes"
}
],
"dependencies": {
"define-properties": "^1.1.2",
"es-abstract": "^1.7.0"
},
"description": "An ES7/ES2016 spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3.",
"devDependencies": {
"@es-shims/api": "^1.2.0",
"@ljharb/eslint-config": "^11.0.0",
"covert": "^1.1.0",
"eslint": "^3.19.0",
"evalmd": "^0.0.17",
"foreach": "^2.0.5",
"function-bind": "^1.1.0",
"indexof": "^0.0.1",
"jscs": "^3.0.7",
"nsp": "^2.6.3",
"replace": "^0.3.0",
"semver": "^5.3.0",
"tape": "^4.6.3"
},
"directories": {},
"dist": {
"shasum": "184b48f62d92d7452bb31b323165c7f8bd02266d",
"tarball": "https://registry.npmjs.org/array-includes/-/array-includes-3.0.3.tgz"
},
"engines": {
"node": ">= 0.4"
},
"gitHead": "b9917e420980b2373898a8ed912e44d4c3d20bd0",
"homepage": "https://github.com/ljharb/array-includes#readme",
"keywords": [
"Array.prototype.includes",
"includes",
"array",
"ES7",
"shim",
"polyfill",
"contains",
"Array.prototype.contains",
"es-shim API"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "ljharb",
"email": "ljharb@gmail.com"
}
],
"name": "array-includes",
"optionalDependencies": {},
"readme": "#array-includes <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n[![browser support][testling-svg]][testling-url]\n\nAn ES7/ES2016 spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the proposed [spec](http://www.ecma-international.org/ecma-262/6.0/).\n\nBecause `Array.prototype.includes` depends on a receiver (the `this` value), the main export takes the array to operate on as the first argument.\n\n## Getting started\n\n```sh\nnpm install --save array-includes\n```\n\n## Usage\n\nBasic usage: **includes(array, value[, fromIndex=0])**\n\n```js\nvar includes = require('array-includes');\nvar arr = [ 'one', 'two' ];\n\nincludes(arr, 'one'); // true\nincludes(arr, 'three'); // false\nincludes(arr, 'one', 1); // false\n```\n\n\n\n## Example\n\n```js\nvar includes = require('array-includes');\nvar assert = require('assert');\nvar arr = [\n\t1,\n\t'foo',\n\tNaN,\n\t-0\n];\n\nassert.equal(arr.indexOf(0) > -1, true);\nassert.equal(arr.indexOf(-0) > -1, true);\nassert.equal(includes(arr, 0), true);\nassert.equal(includes(arr, -0), true);\n\nassert.equal(arr.indexOf(NaN) > -1, false);\nassert.equal(includes(arr, NaN), true);\n\nassert.equal(includes(arr, 'foo', 0), true);\nassert.equal(includes(arr, 'foo', 1), true);\nassert.equal(includes(arr, 'foo', 2), false);\n```\n\n```js\nvar includes = require('array-includes');\nvar assert = require('assert');\n/* when Array#includes is not present */\ndelete Array.prototype.includes;\nvar shimmedIncludes = includes.shim();\n\nassert.equal(shimmedIncludes, includes.getPolyfill());\nassert.deepEqual(arr.includes('foo', 1), includes(arr, 'foo', 1));\n```\n\n```js\nvar includes = require('array-includes');\nvar assert = require('assert');\n/* when Array#includes is present */\nvar shimmedIncludes = includes.shim();\n\nassert.equal(shimmedIncludes, Array.prototype.includes);\nassert.deepEqual(arr.includes(1, 'foo'), includes(arr, 1, 'foo'));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/array-includes\n[npm-version-svg]: http://versionbadg.es/ljharb/array-includes.svg\n[travis-svg]: https://travis-ci.org/ljharb/array-includes.svg\n[travis-url]: https://travis-ci.org/ljharb/array-includes\n[deps-svg]: https://david-dm.org/ljharb/array-includes.svg\n[deps-url]: https://david-dm.org/ljharb/array-includes\n[dev-deps-svg]: https://david-dm.org/ljharb/array-includes/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/array-includes#info=devDependencies\n[testling-svg]: https://ci.testling.com/ljharb/array-includes.png\n[testling-url]: https://ci.testling.com/ljharb/array-includes\n[npm-badge-png]: https://nodei.co/npm/array-includes.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/array-includes.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/array-includes.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=array-includes\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/ljharb/array-includes.git"
},
"scripts": {
"coverage": "covert test/*.js",
"coverage:quiet": "covert test/*.js --quiet",
"eslint": "eslint test/*.js *.js",
"jscs": "jscs test/*.js *.js",
"lint": "npm run --silent jscs && npm run --silent eslint",
"posttest": "npm run --silent security",
"pretest": "npm run --silent lint && evalmd README.md",
"security": "nsp check",
"test": "npm run --silent tests-only",
"test:module": "node test/index.js",
"test:shimmed": "node test/shimmed.js",
"tests-only": "es-shim-api --bound && npm run --silent test:shimmed && npm run --silent test:module"
},
"testling": {
"files": [
"test/index.js",
"test/shimmed.js"
],
"browsers": [
"iexplore/6.0..latest",
"firefox/3.0..6.0",
"firefox/15.0..latest",
"firefox/nightly",
"chrome/4.0..10.0",
"chrome/20.0..latest",
"chrome/canary",
"opera/10.0..latest",
"opera/next",
"safari/4.0..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2"
]
},
"version": "3.0.3"
}