{"name":"string.prototype.replaceall","version":"1.0.5","description":"Spec-compliant polyfill for String.prototype.replaceAll 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","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/String.prototype.replaceAll.git"},"keywords":["string","replaceall","replace","regex","all","es2020","esnext","javascript","spec"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/String.prototype.replaceAll/issues"},"homepage":"https://github.com/es-shims/String.prototype.replaceAll#readme","devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.5.1","aud":"^1.1.4","auto-changelog":"^2.2.1","es5-shim":"^4.5.15","es6-shim":"^0.35.6","eslint":"^7.20.0","evalmd":"^0.0.19","functions-have-names":"^1.2.2","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.2.0"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.18.0-next.2","get-intrinsic":"^1.1.1","has-symbols":"^1.0.1","is-regex":"^1.1.2"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"efff81fe2c3df94f926a666a63731b4388417442","_id":"string.prototype.replaceall@1.0.5","_nodeVersion":"15.8.0","_npmVersion":"7.5.4","dist":{"integrity":"sha512-YUjdWElI9pgKo7mrPOMKHFZxcAa0v1uqoJkMHtlJW63rMkPLkQH71ao2XNkKY2ksHKHC8ZUFwNjN9Vry+QyCvg==","shasum":"3eae8b115c588ece949b14fa2993d86fc8ec87b1","tarball":"http://registry-npm.ywwl.com/string.prototype.replaceall/download/string.prototype.replaceall-1.0.5.tgz","fileCount":16,"unpackedSize":21298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNDPzCRA9TVsSAnZWagAAzmoP/RkOxIS7HpjSeOTit1mW\nXdqCEacDzrNl7cl9XhiJpa2u1vxNFKypr4PRd0i01PjsSVNIf9rnjvJUCakb\nXccKE1c2CNFOleBLDClSl/O+dRWcmWAVthzf8KDd2f4coxMwuyvEPNsKfEBs\nPNrLFSALg1v7cNl5BXepOedE9up3o/bKcIH1scgEMGY4NWlshx6SAaMVLwuM\nBj4UlcSODfZNc98WO40TfjccZYeqMx509XNyOZ0KRrIrlPTwQ8eIShlUOMwR\nUqhUN2Z98NQ+mrhKJCtLQ8w5JF/aEjGWWd97oZ1IHhVT1JW4CU1E/jaf0f58\nRSghZKn6n690KBSB7DAd8AvM2c/XTiGRFTBgWqUKyBN0viDy+tJcyjCwe6dz\n6JBcLwTFOjvRxUSqqcP0SoEJbMQLgFpzek6BW97lBo91WKTZ+s6dDHKUyLW+\nrr9obqBMVkQx3ibywLAFDDzoLOye47EuNGaQZLbRsYHwGJ6dX0tJAHL4wOIA\nboIFksqMyI7l3V7IPfy5GIlPc4TvoTuuZCf54XUinwuFzOC7TJGBRTfW22pk\nEcrKjvP+vup02MWgL2U5iYVLYHeQ7i1iRGZb1QdFXAEsiAbQ/ThzaLzlG4u8\nZjdPapVLEiZA5MLESK36ErmRunX2v56D8orobkQjZf1Gi1EtuN8jNvTJN1qf\nb9nN\r\n=2z2m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFm9F9+o6flG7eotxRb40P3tawJy+zZTj1ybewpwqYoAAiBnCO6g5HZs7reW2bcsQFrJ7bWvgaTNrWFumYedHLhemQ=="}],"size":7533,"noattachment":false,"key":"/string.prototype.replaceall/-/string.prototype.replaceall-1.0.5.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.replaceall_1.0.5_1614033907157_0.18549421527909526"},"_hasShrinkwrap":false,"readme":"# string.prototype.replaceall <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\nES Proposal spec-compliant shim for String.prototype.replaceAll. Invoke its \"shim\" method to shim `String.prototype.replaceAll` 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 [proposed spec](https://github.com/tc39/proposal-string-replaceall).\n\nMost common usage:\n```js\nconst assert = require('assert');\nconst replaceAll = require('string.prototype.replaceall');\n\nconst str = 'aabc';\n\n// replaceAll and replace are the same, when given a global regex to replace\nassert.equal(replaceAll(str, /a/g, 'z'), str.replace(/a/g, 'z'));\n\n// replace, with a string, replaces once\nassert.equal(str.replace('a', 'z'), 'zabc');\n\n// replaceAll, with a string, replaces all\nassert.equal(replaceAll(str, 'a', 'z'), 'zzbc');\n\nreplaceAll.shim(); // will be a no-op if not needed\n\n// replaceAll and replace are the same, when given a global regex to replace\nassert.equal(str.replaceAll(/a/g, 'z'), str.replace(/a/g, 'z'));\n\n// replace, with a string, replaces once\nassert.equal(str.replace('a', 'z'), 'zabc');\n\n// replaceAll, with a string, replaces all\nassert.equal(str.replaceAll('a', 'z'), 'zzbc');\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/string.prototype.replaceall\n[npm-version-svg]: https://versionbadg.es/es-shims/String.prototype.replaceAll.svg\n[deps-svg]: https://david-dm.org/es-shims/String.prototype.replaceAll.svg\n[deps-url]: https://david-dm.org/es-shims/String.prototype.replaceAll\n[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.replaceAll/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.replaceAll#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/string.prototype.replaceall.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/string.prototype.replaceall.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/string.prototype.replaceall.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=string.prototype.replaceall\n[codecov-image]: https://codecov.io/gh/es-shims/string.prototype.replaceall/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/string.prototype.replaceall/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/string.prototype.replaceall\n[actions-url]: https://github.com/es-shims/string.prototype.replacealstring.prototype.replaceall\n","publish_time":1614033907308,"_cnpm_publish_time":1614033907308,"dist-tags":{"latest":"1.0.11"}}