{"_id":"typedarray.prototype.slice","_rev":"4130750","name":"typedarray.prototype.slice","description":"ES spec-compliant shim for TypedArray.prototype.slice","dist-tags":{"latest":"1.0.5"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2026-03-01T18:32:48.000Z","created":"2023-07-18T22:07:27.484Z","1.0.5":"2025-01-03T02:07:32.847Z","1.0.4":"2025-01-03T00:40:05.595Z","1.0.3":"2024-03-15T17:28:05.842Z","1.0.2":"2024-02-06T19:09:25.099Z","1.0.1":"2023-07-18T22:10:05.355Z","1.0.0":"2023-07-18T22:07:27.484Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/es-shims/TypedArray.prototype.slice.git"},"versions":{"1.0.5":{"name":"typedarray.prototype.slice","version":"1.0.5","description":"ES spec-compliant shim for TypedArray.prototype.slice","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","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","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx npm@'>= 10.2' audit --production","tests-only":"nyc tape 'test/**/*.js'","prelint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md && es-shim-api --bound","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/TypedArray.prototype.slice.git"},"homepage":"https://github.com/es-shims/TypedArray.prototype.slice#readme","bugs":{"url":"https://github.com/es-shims/TypedArray.prototype.slice/issues"},"keywords":["javascript","ecmascript","TypedArray.prototype.slice","polyfill","shim","Typed Arrays","array","buffer","TypedArray#slice","slice","typed array","es-shim API"],"dependencies":{"call-bind":"^1.0.8","define-properties":"^1.2.1","es-abstract":"^1.23.9","es-errors":"^1.3.0","get-proto":"^1.0.1","math-intrinsics":"^1.1.0","typed-array-buffer":"^1.0.3","typed-array-byte-offset":"^1.0.4"},"devDependencies":{"@es-shims/api":"^2.5.1","@ljharb/eslint-config":"^21.1.1","auto-changelog":"^2.5.0","available-typed-arrays":"^1.0.7","eclint":"^2.8.1","encoding":"^0.1.13","es-value-fixtures":"^1.5.0","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.3","safe-publish-latest":"^2.0.0","tape":"^5.9.0"},"testling":{"files":"test/index.js"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"typedarray.prototype.slice@1.0.5","gitHead":"30b97e9169b958b3c016d7eb3a89fe06fc94cf3a","_nodeVersion":"23.5.0","_npmVersion":"10.9.2","dist":{"shasum":"a40f896968573b33cbb466a61622d3ee615a0728","size":7600,"noattachment":false,"key":"/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/typedarray.prototype.slice/download/typedarray.prototype.slice-1.0.5.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/typedarray.prototype.slice_1.0.5_1735870052683_0.3431448620786608"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-03T02:07:32.847Z","publish_time":1735870052847,"_source_registry_name":"default","_cnpm_publish_time":1735870052847},"1.0.4":{"name":"typedarray.prototype.slice","version":"1.0.4","description":"ES spec-compliant shim for TypedArray.prototype.slice","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","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","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx npm@'>= 10.2' audit --production","tests-only":"nyc tape 'test/**/*.js'","prelint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md && es-shim-api --bound","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/TypedArray.prototype.slice.git"},"homepage":"https://github.com/es-shims/TypedArray.prototype.slice#readme","bugs":{"url":"https://github.com/es-shims/TypedArray.prototype.slice/issues"},"keywords":["javascript","ecmascript","TypedArray.prototype.slice","polyfill","shim","Typed Arrays","array","buffer","TypedArray#slice","slice","typed array","es-shim API"],"dependencies":{"call-bind":"^1.0.8","define-properties":"^1.2.1","es-abstract":"^1.23.9","es-errors":"^1.3.0","get-proto":"^1.0.1","math-intrinsics":"^1.1.0","typed-array-buffer":"^1.0.3","typed-array-byte-offset":"^1.0.4"},"devDependencies":{"@es-shims/api":"^2.5.1","@ljharb/eslint-config":"^21.1.1","auto-changelog":"^2.5.0","available-typed-arrays":"^1.0.7","eclint":"^2.8.1","encoding":"^0.1.13","es-value-fixtures":"^1.5.0","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.3","safe-publish-latest":"^2.0.0","tape":"^5.9.0"},"testling":{"files":"test/index.js"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"typedarray.prototype.slice@1.0.4","gitHead":"e7e6e12b587bd733c2d8e1b0629b6eb6ca5b35c0","_nodeVersion":"23.5.0","_npmVersion":"10.9.2","dist":{"shasum":"7f779a2fe63da7bf3cd9220b81a986915759910b","size":7497,"noattachment":false,"key":"/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/typedarray.prototype.slice/download/typedarray.prototype.slice-1.0.4.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/typedarray.prototype.slice_1.0.4_1735864805417_0.9756622431871789"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-03T00:40:05.595Z","publish_time":1735864805595,"_source_registry_name":"default","deprecated":"This version has a typo in a package specifier, and will not work","_cnpm_publish_time":1735864805595},"1.0.3":{"name":"typedarray.prototype.slice","version":"1.0.3","description":"ES spec-compliant shim for TypedArray.prototype.slice","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","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","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","prelint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md && es-shim-api --bound","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/TypedArray.prototype.slice.git"},"homepage":"https://github.com/es-shims/TypedArray.prototype.slice#readme","bugs":{"url":"https://github.com/es-shims/TypedArray.prototype.slice/issues"},"keywords":["javascript","ecmascript","TypedArray.prototype.slice","polyfill","shim","Typed Arrays","array","buffer","TypedArray#slice","slice","typed array","es-shim API"],"dependencies":{"call-bind":"^1.0.7","define-properties":"^1.2.1","es-abstract":"^1.23.0","es-errors":"^1.3.0","typed-array-buffer":"^1.0.2","typed-array-byte-offset":"^1.0.2"},"devDependencies":{"@es-shims/api":"^2.4.2","@ljharb/eslint-config":"^21.1.0","aud":"^2.0.4","auto-changelog":"^2.4.0","available-typed-arrays":"^1.0.7","eclint":"^2.8.1","es-value-fixtures":"^1.4.2","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.1","safe-publish-latest":"^2.0.0","tape":"^5.7.5"},"testling":{"files":"test/index.js"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"typedarray.prototype.slice@1.0.3","gitHead":"85540395b4c26a4d163db946d23d350926bfd835","_nodeVersion":"21.7.0","_npmVersion":"10.5.0","dist":{"shasum":"bce2f685d3279f543239e4d595e0d021731d2d1a","size":7069,"noattachment":false,"key":"/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/typedarray.prototype.slice/download/typedarray.prototype.slice-1.0.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typedarray.prototype.slice_1.0.3_1710523685652_0.9988995298203402"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-15T17:28:05.842Z","publish_time":1710523685842,"_source_registry_name":"default","_cnpm_publish_time":1710523685842},"1.0.2":{"name":"typedarray.prototype.slice","version":"1.0.2","description":"ES spec-compliant shim for TypedArray.prototype.slice","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","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","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","prelint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md && es-shim-api --bound","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/TypedArray.prototype.slice.git"},"homepage":"https://github.com/es-shims/TypedArray.prototype.slice#readme","bugs":{"url":"https://github.com/es-shims/TypedArray.prototype.slice/issues"},"keywords":["javascript","ecmascript","TypedArray.prototype.slice","polyfill","shim","Typed Arrays","array","buffer","TypedArray#slice","slice","typed array","es-shim API"],"dependencies":{"call-bind":"^1.0.6","define-properties":"^1.2.1","es-abstract":"^1.22.3","es-errors":"^1.3.0","typed-array-buffer":"^1.0.0","typed-array-byte-offset":"^1.0.0"},"devDependencies":{"@es-shims/api":"^2.4.2","@ljharb/eslint-config":"^21.1.0","aud":"^2.0.4","auto-changelog":"^2.4.0","available-typed-arrays":"^1.0.6","eclint":"^2.8.1","es-value-fixtures":"^1.4.2","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.1","safe-publish-latest":"^2.0.0","tape":"^5.7.4"},"testling":{"files":"test/index.js"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"typedarray.prototype.slice@1.0.2","gitHead":"cecb433b54ffa7f8b30bd52a6fcf0e03ffb43683","_nodeVersion":"21.6.0","_npmVersion":"10.2.4","dist":{"shasum":"caf575928c58aacc84f6c1a75ccc9e4d67a0ae5c","size":6906,"noattachment":false,"key":"/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/typedarray.prototype.slice/download/typedarray.prototype.slice-1.0.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typedarray.prototype.slice_1.0.2_1707246564954_0.07485609825204409"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-06T19:09:25.099Z","publish_time":1707246565099,"_source_registry_name":"default","_cnpm_publish_time":1707246565099},"1.0.1":{"name":"typedarray.prototype.slice","version":"1.0.1","description":"ES spec-compliant shim for TypedArray.prototype.slice","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","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","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","prelint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md && es-shim-api --bound","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/TypedArray.prototype.slice.git"},"homepage":"https://github.com/es-shims/TypedArray.prototype.slice#readme","bugs":{"url":"https://github.com/es-shims/TypedArray.prototype.slice/issues"},"keywords":["javascript","ecmascript","TypedArray.prototype.slice","polyfill","shim","Typed Arrays","array","buffer","TypedArray#slice","slice","typed array","es-shim API"],"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.2.0","es-abstract":"^1.22.1","get-intrinsic":"^1.2.1","typed-array-buffer":"^1.0.0","typed-array-byte-offset":"^1.0.0"},"devDependencies":{"@es-shims/api":"^2.4.2","@ljharb/eslint-config":"^21.1.0","aud":"^2.0.3","auto-changelog":"^2.4.0","available-typed-arrays":"^1.0.5","eclint":"^2.8.1","es-value-fixtures":"^1.4.2","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.0","nyc":"^10.3.2","object-inspect":"^1.12.3","safe-publish-latest":"^2.0.0","tape":"^5.6.6"},"testling":{"files":"test/index.js"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"29c5a29f2efb7427f9f79dbf8b713ed242b74af5","_id":"typedarray.prototype.slice@1.0.1","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"a49598eaa076cab8f36bb3065696c8bdf6c7fc36","size":6635,"noattachment":false,"key":"/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/typedarray.prototype.slice/download/typedarray.prototype.slice-1.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typedarray.prototype.slice_1.0.1_1689718205114_0.8850185812314129"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-18T22:10:05.355Z","publish_time":1689718205355,"_source_registry_name":"default","_cnpm_publish_time":1689718205355},"1.0.0":{"name":"typedarray.prototype.slice","version":"1.0.0","description":"ES spec-compliant shim for TypedArray.prototype.slice","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","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","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","prelint":"eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md && es-shim-api --bound","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/TypedArray.prototype.slice.git"},"homepage":"https://github.com/es-shims/TypedArray.prototype.slice#readme","bugs":{"url":"https://github.com/es-shims/TypedArray.prototype.slice/issues"},"keywords":["javascript","ecmascript","TypedArray.prototype.slice","polyfill","shim","Typed Arrays","array","buffer","TypedArray#slice","slice","typed array","es-shim API"],"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.2.0","es-abstract":"^1.22.1","get-intrinsic":"^1.2.1","typed-array-buffer":"^1.0.0","typed-array-byte-offset":"^1.0.0"},"devDependencies":{"@es-shims/api":"^2.4.2","@ljharb/eslint-config":"^21.1.0","aud":"^2.0.3","auto-changelog":"^2.4.0","available-typed-arrays":"^1.0.5","eclint":"^2.8.1","es-value-fixtures":"^1.4.2","eslint":"=8.8.0","evalmd":"^0.0.19","for-each":"^0.3.3","functions-have-names":"^1.2.3","has-strict-mode":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.0","nyc":"^10.3.2","object-inspect":"^1.12.3","safe-publish-latest":"^2.0.0","tape":"^5.6.6"},"testling":{"files":"test/index.js"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"d54f78b0414b72d5906d971caa3066b3a52f402c","_id":"typedarray.prototype.slice@1.0.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"shasum":"cd1b3b15c86587b8fe773584380d6541185b95ca","size":6567,"noattachment":false,"key":"/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/typedarray.prototype.slice/download/typedarray.prototype.slice-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typedarray.prototype.slice_1.0.0_1689718047299_0.9179120757022503"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-18T22:07:27.484Z","publish_time":1689718047484,"_source_registry_name":"default","_cnpm_publish_time":1689718047484}},"readme":"# TypedArray.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[![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 `TypedArray.prototype.slice` shim. Invoke its \"shim\" method to shim TypedArray.prototype.slice if it is unavailable.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES5-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice).\n\nMost common usage:\n```js\nvar assert = require('assert');\nvar slice = require('typedarray.prototype.slice');\n\nvar arr = new Uint8Array([1, 2, 3]);\n\nvar arr2 = slice(arr);\n\narr2[0] = 2;\narr2[1] = 3;\n\nassert.deepEqual(arr, new Uint8Array([1, 2, 3]));\nassert.deepEqual(arr2, new Uint8Array([2, 3, 3]));\nassert.notEqual(arr.buffer, arr2.buffer);\n\nif (!Uint8Array.prototype.slice) {\n\tslice.shim();\n}\n\nvar arr3 = arr.slice();\narr3[0] = 2;\narr3[1] = 3;\n\nassert.deepEqual(arr, new Uint8Array([1, 2, 3]));\nassert.deepEqual(arr3, new Uint8Array([2, 3, 3]));\nassert.notEqual(arr.buffer, arr3.buffer);\n```\n\n## Engines where this is needed\n\n\t- node v0.11.4 - v4: no prototype or own `slice` method\n\t- node < v0.11.3: own `slice` method that fails to clone the underlying buffer\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/typedarray.prototype.slice\n[npm-version-svg]: https://versionbadg.es/es-shims/TypedArray.prototype.slice.svg\n[deps-svg]: https://david-dm.org/es-shims/TypedArray.prototype.slice.svg\n[deps-url]: https://david-dm.org/es-shims/TypedArray.prototype.slice\n[dev-deps-svg]: https://david-dm.org/es-shims/TypedArray.prototype.slice/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/TypedArray.prototype.slice#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/typedarray.prototype.slice.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/typedarray.prototype.slice.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/typedarray.prototype.slice.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=typedarray.prototype.slice\n[codecov-image]: https://codecov.io/gh/es-shims/TypedArray.prototype.slice/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/TypedArray.prototype.slice/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/TypedArray.prototype.slice\n[actions-url]: https://github.com/es-shims/TypedArray.prototype.slice/actions\n","_attachments":{},"homepage":"https://github.com/es-shims/TypedArray.prototype.slice#readme","bugs":{"url":"https://github.com/es-shims/TypedArray.prototype.slice/issues"},"license":"MIT"}