{"_id":"es-shim-unscopables","_rev":"267132","name":"es-shim-unscopables","description":"Helper package to shim a method into `Array.prototype[Symbol.unscopables]`","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2023-03-27T19:07:52.000Z","created":"2022-04-11T20:19:09.228Z","1.0.0":"2022-04-11T20:19:09.228Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ljharb/es-shim-unscopables.git"},"versions":{"1.0.0":{"name":"es-shim-unscopables","version":"1.0.0","description":"Helper package to shim a method into `Array.prototype[Symbol.unscopables]`","main":"index.js","exports":{".":"./index.js","./package.json":"./package.json"},"scripts":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","prelint-disabled":"evalmd README.md","lint":"eslint --ext=.js,.mjs .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git+https://github.com/ljharb/es-shim-unscopables.git"},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/es-shim-unscopables/issues"},"homepage":"https://github.com/ljharb/es-shim-unscopables#readme","devDependencies":{"@ljharb/eslint-config":"^21.0.0","aud":"^2.0.0","auto-changelog":"^2.4.0","es-value-fixtures":"^1.2.1","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","in-publish":"^2.0.1","nyc":"^10.3.2","object-inspect":"^1.12.0","safe-publish-latest":"^2.0.0","tape":"^5.5.3"},"dependencies":{"has":"^1.0.3"},"gitHead":"4927833211c6ca86d5a892b979b6804f1edc4c71","_id":"es-shim-unscopables@1.0.0","_nodeVersion":"17.9.0","_npmVersion":"8.3.1","dist":{"shasum":"702e632193201e3edf8713635d083d378e510241","size":4016,"noattachment":false,"key":"/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/es-shim-unscopables/download/es-shim-unscopables-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es-shim-unscopables_1.0.0_1649708348833_0.9861850899876035"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-11T20:27:12.057Z","publish_time":1649708349228,"_cnpm_publish_time":1649708349228}},"readme":"# es-shim-unscopables <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-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\nHelper package to shim a method into `Array.prototype[Symbol.unscopables]`\n\n## Example\n\n```js\nconst assert = require('assert');\n\nconst shimUnscopables = require('es-shim-unscopables');\n\nlet copyWithin;\nlet concat;\nwith ([]) {\n    assert.equal(concat, Array.prototype.concat);\n    assert.notEqual(copyWithin, Array.prototype.copyWithin);\n}\n\nshimUnscopables('concat');\n\nwith ([]) {\n    assert.notEqual(concat, Array.prototype.concat);\n    assert.notEqual(copyWithin, Array.prototype.copyWithin);\n}\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n## Security\n\nPlease email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.\n\n[package-url]: https://npmjs.org/package/es-shim-unscopables\n[npm-version-svg]: https://versionbadg.es/ljharb/es-shim-unscopables.svg\n[deps-svg]: https://david-dm.org/ljharb/es-shim-unscopables.svg\n[deps-url]: https://david-dm.org/ljharb/es-shim-unscopables\n[dev-deps-svg]: https://david-dm.org/ljharb/es-shim-unscopables/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/es-shim-unscopables#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/es-shim-unscopables.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/es-shim-unscopables.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/es-shim-unscopables.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=es-shim-unscopables\n[codecov-image]: https://codecov.io/gh/ljharb/es-shim-unscopables/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/es-shim-unscopables/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-shim-unscopables\n[actions-url]: https://github.com/ljharb/es-shim-unscopables/actions\n","_attachments":{},"homepage":"https://github.com/ljharb/es-shim-unscopables#readme","bugs":{"url":"https://github.com/ljharb/es-shim-unscopables/issues"},"license":"MIT"}