{"name":"array.prototype.slice","version":"1.0.1","description":"ES spec-compliant `Array.prototype.slice` shim/polyfill/replacement that works as far down as ES3","main":"index.js","exports":{".":"./index.js","./auto":"./auto.js","./polyfill":"./polyfill.js","./implementation":"./implementation.js","./shim":"./shim.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","preversion":"auto-changelog","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","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/es-shims/Array.prototype.slice.git"},"keywords":["javascript","ecmascript","polyfill","shim","array","slice","Array.prototype.slice","ES5","es-shim API"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Array.prototype.slice/issues"},"homepage":"https://github.com/es-shims/Array.prototype.slice#readme","engines":{"node":">= 0.4"},"devDependencies":{"@es-shims/api":"^2.2.3","@ljharb/eslint-config":"^21.0.0","aud":"^2.0.1","auto-changelog":"^2.4.0","eslint":"=8.8.0","evalmd":"^0.0.19","functions-have-names":"^1.2.3","has":"^1.0.3","has-strict-mode":"^1.0.1","has-symbols":"^1.0.3","in-publish":"^2.0.1","npmignore":"^0.3.0","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.6.1"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.4","es-abstract":"^1.20.4","get-intrinsic":"^1.1.3","is-string":"^1.0.7"},"testling":{"files":"test/*.js"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"1b6d42f6ea7a2d11699e307bd25183657d833a49","_id":"array.prototype.slice@1.0.1","_nodeVersion":"19.0.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-3LqX5RpWG4uLrHQrc7pQmQIhbqdHI77/CSSzSzRP7zC/mUqujux5yGVTvhSli2B9+8Fux5DZKt90+f84Kl4HVw==","shasum":"634e06fe64bd7b125972ee27866b3d2951b9b6cb","tarball":"http://registry-npm.ywwl.com/array.prototype.slice/download/array.prototype.slice-1.0.1.tgz","fileCount":17,"unpackedSize":17666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDI6WbFGWsY2PEMyQF99UBdYHhww0jfw+4Spm1o8qpRsgIhAL3n0IJusiFMxttcmDz9WcyXdIftnz7kNh8TJ9V9JbkS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZK6OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2lQ//bTprfzOABQg+hC2AZLlVyfIBln/tQnmHfr9ow+cV5q4C9bQ8\r\niXJmfNlXPdm847zXjQQQ10Ztx0BI9vPoExA9N3AUIdCh5p85eLr/3zI4Bqba\r\nW2fP4s3+iv4qVfSIh3BnSo5rIza62iO3ulsaQI+4iL2H1s3z7hrrLEkfEL0p\r\nibcUV0vEybH/W3xyDFE2N+r8OR6a6R7at+iRCGej5Occw2a4uus5Y37+dawj\r\n894es9PwU6xpJdnBp8CTAibcZI4rjsW7AGoc5LV/4QFS7Dj2vA0KL9Y8LGeQ\r\n8tvm1dVRj76qVxTnLhRkT1Q4HAQjurWMqNSzZEqxzcXBT1d9hTvsuOOtH+T2\r\nH0rbp+KvmVyss3Me3DvOPRSTZ24qNYjU09+DUJ0Bv9d8r4LfjEa4lE5VhY8G\r\nqI0ghlmF3DUCK2neC6ak0xlXrRFApJIFJRuCGHJ9ZPtWU5HdgHdVzGZLCdoO\r\ndyVWzlo18mC9EKXcWGbqgWem2GFti5I+pFzU7P/gBrus5vcYHJI+VJfXjSuH\r\nAf6JBhScQaUT3PvI1P0tCG/byCDx4DT2IvpWTr4S9pNTvASb9ETlbSk87MkI\r\nYTXXVv1jcGTZsFAq0zjPqxMnMUk9jD1jR9Y5jJTJDZmUquj7tepG6ReCansJ\r\n5ycfznBAQTiSYr0iZF2yn2nslssxJJ5HFp0=\r\n=bczq\r\n-----END PGP SIGNATURE-----\r\n","size":6389,"noattachment":false,"key":"/array.prototype.slice/-/array.prototype.slice-1.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array.prototype.slice_1.0.1_1667542669811_0.5018181809124451"},"_hasShrinkwrap":false,"readme":"# array.prototype.slice <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\nAn ES spec-compliant `Array.prototype.slice` 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 [spec](https://tc39.es/ecma262/#sec-array.prototype.slice).\n\nBecause `Array.prototype.slice` depends on a receiver (the “this” value), the main export takes the array to operate on as the first argument.\n\n## Engines where this is needed\n\nNote: this list is not exhaustive.\n\n  - Safari 10 - 13\n  - Chrome 48+ ([v8 bug](https://bugs.chromium.org/p/v8/issues/detail?id=10381))\n  - node 6+\n\n## Example\n\n```js\nvar slice = require('array.prototype.slice');\nvar assert = require('assert');\n\nvar a = [1, 2, 3];\nassert.deepEqual(slice(a, 1, 2), [2]);\nassert.deepEqual(slice(a, -2), [2, 3]);\n```\n\n```js\nvar slice = require('array.prototype.slice');\nvar assert = require('assert');\n/* when Array#slice is not present */\ndelete Array.prototype.slice;\nvar shimmed = slice.shim();\nassert.equal(shimmed, slice.getPolyfill());\nassert.equal(shimmed, Array.prototype.slice);\nassert.deepEqual([1, 2, 3].slice(1, 2), slice([1, 2, 3], 1, 2));\n```\n\n```js\nvar slice = require('array.prototype.slice');\nvar assert = require('assert');\n/* when Array#slice is present */\nvar shimmed = slice.shim();\nassert.equal(shimmed, Array.prototype.slice);\nassert.deepEqual([1, 2, 3].slice(1, 2), slice([1, 2, 3], 1, 2));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/array.prototype.slice\n[npm-version-svg]: https://versionbadg.es/es-shims/Array.prototype.slice.svg\n[deps-svg]: https://david-dm.org/es-shims/Array.prototype.slice.svg\n[deps-url]: https://david-dm.org/es-shims/Array.prototype.slice\n[dev-deps-svg]: https://david-dm.org/es-shims/Array.prototype.slice/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Array.prototype.slice#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/array.prototype.slice.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/array.prototype.slice.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/array.prototype.slice.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=array.prototype.slice\n[codecov-image]: https://codecov.io/gh/es-shims/Array.prototype.slice/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Array.prototype.slice/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Array.prototype.slice\n[actions-url]: https://github.com/es-shims/Array.prototype.slice/actions\n","publish_time":1667542669996,"_cnpm_publish_time":1667542669996,"dist-tags":{"latest":"1.0.3"}}