{"name":"string.prototype.matchall","version":"4.0.3","description":"Spec-compliant polyfill for String.prototype.matchAll ESnext proposal.","main":"index.js","scripts":{"prepublish":"safe-publish-latest","pretest":"npm run lint","test":"npm run tests-only","posttest":"npx aud --production","tests-only":"nyc tape 'test/**/*.js'","prelint":"evalmd *.md","lint":"eslint .","postlint":"es-shim-api --bound"},"repository":{"type":"git","url":"git+https://github.com/ljharb/String.prototype.matchAll.git"},"keywords":["String.prototype.matchAll","matchAll","match","regex","regexp","regular","expression","matches"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/String.prototype.matchAll/issues"},"homepage":"https://github.com/ljharb/String.prototype.matchAll#readme","dependencies":{"call-bind":"^1.0.0","define-properties":"^1.1.3","es-abstract":"^1.18.0-next.1","has-symbols":"^1.0.1","internal-slot":"^1.0.2","regexp.prototype.flags":"^1.3.0","side-channel":"^1.0.3"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.2.0","aud":"^1.1.3","es5-shim":"^4.5.14","es6-shim":"^0.35.6","eslint":"^7.13.0","evalmd":"^0.0.19","foreach":"^2.0.5","functions-have-names":"^1.2.1","nyc":"^10.3.2","object-inspect":"^1.8.0","object.assign":"^4.1.2","object.entries":"^1.1.2","safe-publish-latest":"^1.1.4","tape":"^5.0.1"},"gitHead":"3d4012a233bc409f946075656a9fb999b24d3cf0","_id":"string.prototype.matchall@4.0.3","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-OBxYDA2ifZQ2e13cP82dWFMaCV9CGF8GzmN4fljBVw5O5wep0lu4gacm1OL6MjROoUnB8VbkWRThqkV2YFLNxw==","shasum":"24243399bc31b0a49d19e2b74171a15653ec996a","tarball":"http://registry-npm.ywwl.com/string.prototype.matchall/download/string.prototype.matchall-4.0.3.tgz","fileCount":24,"unpackedSize":104545,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJft3DOCRA9TVsSAnZWagAADw4P/AprstiDQwAKtrKxaGdA\naWxG6ozztv1CEvEOiFNCExNcF4GPsAwqUjY95u4nhkHniHoGbvMEM3wlJqxd\nRyVUxVcfrjejGI0DHHzEuZLFk+rbU/8ghsB+CF9lIE1bHpTLTBnd8evIB7hT\njrlle8tlsKDYYxWO9BPxN0CDrGrA3iqZra5OMWIO6nVHO50tqigUQpPBbGlz\nXbmknMpyQlTxlpu/MBla+Dxt0vtcNWWcWc1YE4E5mBkdcQb6EsWi//BV0sX0\nSSZHLpJ37R8ziOgd0vivGrqxrPR3RAfOAa4+rM3I3WJR60tzL2AYDU5vLD+s\nPyIBPtFUvDup/jGJ/j3UvkO9GN3n394DMjIClNarPUrRKLJf05QFHcXRQD9H\nJth18c+jky/AOAT4vtFX3sLeRY8+eQigKogKDwZpF4SGtYEgaqjzCanE1efS\nsSIW3Nk5kWE1BdNh0JvhQ1oV4NIe/hrpw48WUnKu2XMnzUz07FYyH/Of65Eu\nQfZvcShgvXTasMT2nKmn7Uu6gXJTpRvtJwVVOBKmWNdBUa8wvoEuNkIu0U0z\n4G6Eba48wjUCOrkwTtX0VjhpCJEVHjqnVxOR/5KlCMXqDUfsz0jBnrXeo9Rq\neDXdLj6J1H3NrgX6p5pilMsPKgXhvN6A8kVE5RKTQBtker1Y1TE2CNT9Y/S9\nO8Yo\r\n=6oAR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdYQ9IBNAjbh3TxFcbaR7o2PSwqY4vA4rARhy+hugdIAiAeGbvszqiRnQHHk7aiXBIv9fGo7e2e3pmVKgHzeKWlSQ=="}],"size":17769,"noattachment":false,"key":"/string.prototype.matchall/-/string.prototype.matchall-4.0.3.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.matchall_4.0.3_1605857485623_0.8615713807228915"},"_hasShrinkwrap":false,"readme":"# string.prototype.matchall <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\nES2020 spec-compliant shim for String.prototype.matchAll. Invoke its \"shim\" method to shim `String.prototype.matchAll` if it is unavailable or noncompliant.\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-string.prototype.matchall).\n\nMost common usage:\n```js\nconst assert = require('assert');\nconst matchAll = require('string.prototype.matchall');\n\nconst str = 'aabc';\nconst nonRegexStr = 'ab';\nconst globalRegex = /[ac]/g;\nconst nonGlobalRegex = /[bc]/i;\n\n// non-regex arguments are coerced into a global regex\nassert.deepEqual(\n\t[...matchAll(str, nonRegexStr)],\n\t[...matchAll(str, new RegExp(nonRegexStr, 'g'))]\n);\n\nassert.deepEqual([...matchAll(str, globalRegex)], [\n\tObject.assign(['a'], { index: 0, input: str, groups: undefined }),\n\tObject.assign(['a'], { index: 1, input: str, groups: undefined }),\n\tObject.assign(['c'], { index: 3, input: str, groups: undefined }),\n]);\n\nassert.throws(() => matchAll(str, nonGlobalRegex)); // non-global regexes throw\n\nmatchAll.shim(); // will be a no-op if not needed\n\n// non-regex arguments are coerced into a global regex\nassert.deepEqual(\n\t[...str.matchAll(nonRegexStr)],\n\t[...str.matchAll(new RegExp(nonRegexStr, 'g'))]\n);\n\nassert.deepEqual([...str.matchAll(globalRegex)], [\n\tObject.assign(['a'], { index: 0, input: str, groups: undefined }),\n\tObject.assign(['a'], { index: 1, input: str, groups: undefined }),\n\tObject.assign(['c'], { index: 3, input: str, groups: undefined }),\n]);\n\nassert.throws(() => matchAll(str, nonGlobalRegex)); // non-global regexes throw\n\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/string.prototype.matchall\n[npm-version-svg]: https://versionbadg.es/es-shims/String.prototype.matchAll.svg\n[deps-svg]: https://david-dm.org/es-shims/String.prototype.matchAll.svg\n[deps-url]: https://david-dm.org/es-shims/String.prototype.matchAll\n[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.matchAll/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.matchAll#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/string.prototype.matchall.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/string.prototype.matchall.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/string.prototype.matchall.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.matchall\n[codecov-image]: https://codecov.io/gh/es-shims/String.prototype.matchAll/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/String.prototype.matchAll/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/String.prototype.matchAll\n[actions-url]: https://github.com/es-shims/String.prototype.matchAll/actions\n","publish_time":1605857485786,"_cnpm_publish_time":1605857485786,"dist-tags":{"latest":"4.1.0"}}