{"name":"string.prototype.matchall","version":"4.0.2","description":"Spec-compliant polyfill for String.prototype.matchAll ESnext proposal.","main":"index.js","scripts":{"prepublish":"safe-publish-latest","pretest":"npm run lint","test":"es-shim-api --bound && npm run tests-only","posttest":"npx aud","tests-only":"npm run test:module && npm run test:shim","test:module":"node test","test:shim":"node test/shimmed","prelint":"evalmd *.md","lint":"eslint ."},"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":{"define-properties":"^1.1.3","es-abstract":"^1.17.0","has-symbols":"^1.0.1","internal-slot":"^1.0.2","regexp.prototype.flags":"^1.3.0","side-channel":"^1.0.2"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^15.1.0","es5-shim":"^4.5.13","es6-shim":"^0.35.5","eslint":"^6.8.0","evalmd":"0.0.19","foreach":"^2.0.5","function-bind":"^1.1.1","functions-have-names":"^1.2.0","object-inspect":"^1.7.0","object.assign":"^4.1.0","object.entries":"^1.1.1","safe-publish-latest":"^1.1.4","tape":"^4.12.0"},"gitHead":"565fae07678b13ec44d43a5f3e3d5cce62660232","_id":"string.prototype.matchall@4.0.2","_nodeVersion":"13.5.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-N/jp6O5fMf9os0JU3E72Qhf590RSRZU/ungsL/qJUYVTNv7hTG0P/dbPjxINVN9jpscu3nzYwKESU3P3RY5tOg==","shasum":"48bb510326fb9fdeb6a33ceaa81a6ea04ef7648e","tarball":"http://registry-npm.ywwl.com/string.prototype.matchall/download/string.prototype.matchall-4.0.2.tgz","fileCount":22,"unpackedSize":34885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeAPThCRA9TVsSAnZWagAAzf8QAKKuUcwZI1TC0l2qTTmq\noMj2DQjCxMEaUIJNjOP1BYUWJvp5SG9W0rGxOXiwF8YNfXjZdKOYfT2y9YU0\n6YRF5SHWJWot0LGUwJV9yVQ9B1C40s3OPi6hHfdK1WYx59M/6B7hpk0VN5gp\nGXHbC9ti3bnoiAdoCkC8n0s/HQrK6GkjgR4sLtFZCAX/3uVyEWTEGfC1jeRC\n509sjFYrVaRaKbxNkq93mFy4GF2cgZ5QN0NpJwJ3/1A9OrSRYtkVwGkeygus\nMfeTmUhgn70DihxSnAWvbPNw/PndZYTd88qYyFUvU/H4M1X6/HjTOOOpTYCo\nHf8IN8HjBjAbZlFx/rjDJbHe0S/hSPggk55ho26sz/ATiSL6zGaA9DJakCly\nbVGKeZQ9Rmr1cCOfOZLxjjN0j43xfxiXjr4PR3cBP9kXLRKsMFI54Eq0wP2V\ni/5UcMCx01wEEcGL93PNK0/FEQ/SAGT8cuxi3nNv9BcOAIlj6Wa/miMNAQbX\ncM1IcDs0tYvH5d+5fbChwAbbxzPJsqLCVDvY068qHekYETl+fokrlXT2ewRP\nUE24/1bpQzdlH22UTjdWrSbBek0TeGfTM5DJFGqIvBP35goV5VTFTxI6NNQ1\ndBT7CmhElaOp8zvD5Xh6gGjrg7Cm+ED5fecsklqonSPxK3eV5EXgd6/RwKCG\nh8n2\r\n=gHwd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChI1vVHcaUJQRnI7DQgIhWELV1z2/craDwlsDwUkZRbQIgRya2OiZoBNNfBtNKzJaNNs2wvMMiExuVBEDZnhD5QlA="}],"size":9584,"noattachment":false,"key":"/string.prototype.matchall/-/string.prototype.matchall-4.0.2.tgz"},"maintainers":[{"email":"ljharb+esshims@gmail.com","name":"es-shims-owner"},{"email":"ljharb@gmail.com","name":"ljharb"}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.matchall_4.0.2_1577120992876_0.32731086160086154"},"_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":1577120992972,"_cnpm_publish_time":1577120992972,"dist-tags":{"latest":"4.1.0"}}