{"name":"es-iterator-helpers","version":"1.0.7","description":"An ESnext spec-compliant iterator helpers shim/polyfill/replacement that works as far down as ES3.","main":"index.json","exports":{".":"./index.json","./auto":"./auto.js","./shim":"./shim.js","./Iterator":"./Iterator/index.js","./Iterator/auto":"./Iterator/auto.js","./Iterator/polyfill":"./Iterator/polyfill.js","./Iterator/implementation":"./Iterator/implementation.js","./Iterator/shim":"./Iterator/shim.js","./Iterator.from":"./Iterator.from/index.js","./Iterator.from/auto":"./Iterator.from/auto.js","./Iterator.from/polyfill":"./Iterator.from/polyfill.js","./Iterator.from/implementation":"./Iterator.from/implementation.js","./Iterator.from/shim":"./Iterator.from/shim.js","./Iterator.prototype.constructor":"./Iterator.prototype.constructor/index.js","./Iterator.prototype.constructor/auto":"./Iterator.prototype.constructor/auto.js","./Iterator.prototype.constructor/polyfill":"./Iterator.prototype.constructor/polyfill.js","./Iterator.prototype.constructor/implementation":"./Iterator.prototype.constructor/implementation.js","./Iterator.prototype.constructor/shim":"./Iterator.prototype.constructor/shim.js","./Iterator.prototype.map":"./Iterator.prototype.map/index.js","./Iterator.prototype.map/auto":"./Iterator.prototype.map/auto.js","./Iterator.prototype.map/polyfill":"./Iterator.prototype.map/polyfill.js","./Iterator.prototype.map/implementation":"./Iterator.prototype.map/implementation.js","./Iterator.prototype.map/shim":"./Iterator.prototype.map/shim.js","./Iterator.prototype.filter":"./Iterator.prototype.filter/index.js","./Iterator.prototype.filter/auto":"./Iterator.prototype.filter/auto.js","./Iterator.prototype.filter/polyfill":"./Iterator.prototype.filter/polyfill.js","./Iterator.prototype.filter/implementation":"./Iterator.prototype.filter/implementation.js","./Iterator.prototype.filter/shim":"./Iterator.prototype.filter/shim.js","./Iterator.prototype.take":"./Iterator.prototype.take/index.js","./Iterator.prototype.take/auto":"./Iterator.prototype.take/auto.js","./Iterator.prototype.take/polyfill":"./Iterator.prototype.take/polyfill.js","./Iterator.prototype.take/implementation":"./Iterator.prototype.take/implementation.js","./Iterator.prototype.take/shim":"./Iterator.prototype.take/shim.js","./Iterator.prototype.drop":"./Iterator.prototype.drop/index.js","./Iterator.prototype.drop/auto":"./Iterator.prototype.drop/auto.js","./Iterator.prototype.drop/polyfill":"./Iterator.prototype.drop/polyfill.js","./Iterator.prototype.drop/implementation":"./Iterator.prototype.drop/implementation.js","./Iterator.prototype.drop/shim":"./Iterator.prototype.drop/shim.js","./Iterator.prototype.flatMap":"./Iterator.prototype.flatMap/index.js","./Iterator.prototype.flatMap/auto":"./Iterator.prototype.flatMap/auto.js","./Iterator.prototype.flatMap/polyfill":"./Iterator.prototype.flatMap/polyfill.js","./Iterator.prototype.flatMap/implementation":"./Iterator.prototype.flatMap/implementation.js","./Iterator.prototype.flatMap/shim":"./Iterator.prototype.flatMap/shim.js","./Iterator.prototype.reduce":"./Iterator.prototype.reduce/index.js","./Iterator.prototype.reduce/auto":"./Iterator.prototype.reduce/auto.js","./Iterator.prototype.reduce/polyfill":"./Iterator.prototype.reduce/polyfill.js","./Iterator.prototype.reduce/implementation":"./Iterator.prototype.reduce/implementation.js","./Iterator.prototype.reduce/shim":"./Iterator.prototype.reduce/shim.js","./Iterator.prototype.toArray":"./Iterator.prototype.toArray/index.js","./Iterator.prototype.toArray/auto":"./Iterator.prototype.toArray/auto.js","./Iterator.prototype.toArray/polyfill":"./Iterator.prototype.toArray/polyfill.js","./Iterator.prototype.toArray/implementation":"./Iterator.prototype.toArray/implementation.js","./Iterator.prototype.toArray/shim":"./Iterator.prototype.toArray/shim.js","./Iterator.prototype.forEach":"./Iterator.prototype.forEach/index.js","./Iterator.prototype.forEach/auto":"./Iterator.prototype.forEach/auto.js","./Iterator.prototype.forEach/polyfill":"./Iterator.prototype.forEach/polyfill.js","./Iterator.prototype.forEach/implementation":"./Iterator.prototype.forEach/implementation.js","./Iterator.prototype.forEach/shim":"./Iterator.prototype.forEach/shim.js","./Iterator.prototype.some":"./Iterator.prototype.some/index.js","./Iterator.prototype.some/auto":"./Iterator.prototype.some/auto.js","./Iterator.prototype.some/polyfill":"./Iterator.prototype.some/polyfill.js","./Iterator.prototype.some/implementation":"./Iterator.prototype.some/implementation.js","./Iterator.prototype.some/shim":"./Iterator.prototype.some/shim.js","./Iterator.prototype.every":"./Iterator.prototype.every/index.js","./Iterator.prototype.every/auto":"./Iterator.prototype.every/auto.js","./Iterator.prototype.every/polyfill":"./Iterator.prototype.every/polyfill.js","./Iterator.prototype.every/implementation":"./Iterator.prototype.every/implementation.js","./Iterator.prototype.every/shim":"./Iterator.prototype.every/shim.js","./Iterator.prototype.find":"./Iterator.prototype.find/index.js","./Iterator.prototype.find/auto":"./Iterator.prototype.find/auto.js","./Iterator.prototype.find/polyfill":"./Iterator.prototype.find/polyfill.js","./Iterator.prototype.find/implementation":"./Iterator.prototype.find/implementation.js","./Iterator.prototype.find/shim":"./Iterator.prototype.find/shim.js","./package.json":"./package.json"},"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","prelint":"es-shim-api --bound --multi --ignore-dirs=WrapForValidIteratorPrototype,IteratorHelperPrototype","lint":"eslint --ext=js,mjs .","postlint":"evalmd README.md","pretest":"npm run lint","test":"npm run tests-only","tests-only":"nyc tape 'test/**/*.js'","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/es-shims/iterator-helpers.git"},"keywords":["javascript","ecmascript","polyfill","shim","es-shims","es-shim API","Iterator","helpers","from","map","filter","take","drop","flatMap","reduce","toArray","forEach","some","every","find"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/iterator-helpers/issues"},"homepage":"https://github.com/es-shims/iterator-helpers#readme","dependencies":{"asynciterator.prototype":"^1.0.0","es-abstract":"^1.21.2","es-set-tostringtag":"^2.0.1","function-bind":"^1.1.1","globalthis":"^1.0.3","has-proto":"^1.0.1","has-symbols":"^1.0.3","internal-slot":"^1.0.5","iterator.prototype":"^1.1.0","safe-array-concat":"^1.0.0"},"devDependencies":{"@es-shims/api":"^2.3.1","@ljharb/eslint-config":"^21.0.1","aud":"^2.0.2","auto-changelog":"^2.4.0","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","iterate-iterator":"^1.0.2","npmignore":"^0.3.0","nyc":"^10.3.2","object-inspect":"^1.12.3","safe-publish-latest":"^2.0.0","tape":"^5.6.3"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"660e1575a88f5192750f278c306f6c30191645ae","_id":"es-iterator-helpers@1.0.7","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-T7iXXH+aW2gumfmkzawrRGmUqqMZxvfp9nvRPbP4g9isyHLnYHDmUea0Dh50Blxs7GG/Amq6BmGxY+TznNKdyw==","shasum":"d2d2776e9eaa6599b1a87ffb353bc95d82af5c15","tarball":"http://registry-npm.ywwl.com/es-iterator-helpers/download/es-iterator-helpers-1.0.7.tgz","fileCount":111,"unpackedSize":139000,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUySb3s6wIuMl4zluDvS1d8ngb+FrCdCwlP47gBSaVSwIhAPxafba2j51jvmWfvN4dnkj89Tw7Y2G94ByWthbaDKFZ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUHH1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/Tg/+JzTxfW8o6QEIM2pc7875gI/evSR27VDN/K83EbNZwsT7C7LO\r\n6XCYEyjU3eiKe9QoLK4a1TTjP1rxYgU+fyVSFlb2vhcDdsI8zoYIEGHCYtAD\r\nOzWQPKo4pCzlHHVcYq8VJFYqfwceFNK8uoDO50ubpjYxrs/EwhBan5ePpfK8\r\nyqrGMD/gIkNROW0cl7cUBH3dzxTAuC2UbRKIx/jUgEXu1g5RrL1YxJcVCdL1\r\nswE3HupKS9f8odqCLS/NctWroKL/kec1WnWDqJOtHiXoGSUhA8Yf9ej3MVCc\r\nz9xFYLInIehESRgTI06hhTOiTB1k9asIhpMsHQnaZT5Kklpi/ug6UVyy/LHY\r\nEvkroh5eASWPmiNnSHHTDEWoq9vP37NxNgIGOqqGAVyVsk6NKoLWmBj3Ksbb\r\nzwAiadM0oko2FkZmBXrbHqZcOwbZB7BIeQPHXcTwF4XInqjQwLbOLUx9BXlE\r\nviPQJt4wb+xCSE2iLa80zB5CpXgUhQiVihAaFB5jcYrLjglIAneg++sF9zk2\r\nEdhv4gCn091TlEBlOGPksrT/a2442qIhkBd+XLhqYBlQ3YRRzDs7C3je/Kw9\r\nn8Uzza9LdZZ0Y7X1/R9mk5huXnBeUu/BtU8grFYU6LqMX8RxDbcGCoduTcBa\r\nRgO9zTavUnHP4JqG3vBgtCegWstznhAg50E=\r\n=xpan\r\n-----END PGP SIGNATURE-----\r\n","size":21834,"noattachment":false,"key":"/es-iterator-helpers/-/es-iterator-helpers-1.0.7.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es-iterator-helpers_1.0.7_1682993653693_0.1422187683421514"},"_hasShrinkwrap":false,"readme":"# es-iterator-helpers <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 ESnext spec-compliant sync iterator helpers shim/polyfill/replacement that works as far down as ES3.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) “multi” interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-additional-properties-of-the-string.prototype-object).\n\nBecause the `Iterator.prototype` methods depend on a receiver (the `this` value), the main export in each subdirectory takes the string to operate on as the first argument.\n\nThe main export of the package itself is simply an array of the available directory names. It’s sole intended use is for build tooling and testing.\n\n## Supported things\n\n - [`Iterator` constructor](https://tc39.es/proposal-iterator-helpers/#sec-iterator-constructor)\n - [`Iterator.prototype`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.prototype)\n - [`Iterator.from`](https://tc39.es/proposal-iterator-helpers/#sec-iterator.from)\n - [`Iterator.prototype.constructor`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.constructor)\n - [`Iterator.prototype.drop`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.drop)\n - [`Iterator.prototype.every`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.every)\n - [`Iterator.prototype.filter`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.filter)\n - [`Iterator.prototype.find`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.find)\n - [`Iterator.prototype.flatMap`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.flatmap)\n - [`Iterator.prototype.forEach`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.foreach)\n - [`Iterator.prototype.map`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.map)\n - [`Iterator.prototype.reduce`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.reduce)\n - [`Iterator.prototype.some`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.some)\n - [`Iterator.prototype.take`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.take)\n - [`Iterator.prototype.toArray`](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype.toarray)\n\n## Environments where this is needed\n\n - node v22, Chrome >= v122: has a [bug](https://issues.chromium.org/issues/336839115)\n - node < v22, Chrome < v122, Safari <= v17.1, Firefox <= v125: not implemented\n\n## Getting started\n\n```sh\nnpm install --save es-iterator-helpers\n```\n\n## Usage/Examples\n\n```js\nconst map = require('es-iterator-helpers/Iterator.prototype.map');\nconst toArray = require('es-iterator-helpers/Iterator.prototype.toArray');\nconst assert = require('assert');\n\nconst iterator = [1, 2, 3].values();\n\nconst mapped = map(iterator, (x) => x + 10);\nassert.deepEqual(\n\tmapped.next(),\n    {\n        done: false,\n        value: 11,\n    }\n);\nassert.deepEqual(\n    toArray(mapped),\n    [12, 13]\n);\n```\n\n```js\nrequire('./auto'); // shim all of the methods\n\nrequire('./Iterator.prototype.map/auto'); // shim the “map” method\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/es-iterator-helpers\n[npm-version-svg]: https://versionbadg.es/es-shims/iterator-helpers.svg\n[deps-svg]: https://david-dm.org/es-shims/iterator-helpers.svg\n[deps-url]: https://david-dm.org/es-shims/iterator-helpers\n[dev-deps-svg]: https://david-dm.org/es-shims/iterator-helpers/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/iterator-helpers#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/es-iterator-helpers.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/es-iterator-helpers.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/es-iterator-helpers.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=es-iterator-helpers\n[codecov-image]: https://codecov.io/gh/es-shims/iterator-helpers/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/iterator-helpers/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/iterator-helpers\n[actions-url]: https://github.com/es-shims/iterator-helpers/actions\n","publish_time":1682993653903,"_cnpm_publish_time":1682993653903,"dist-tags":{"latest":"1.4.0"}}