{"name":"string.prototype.replaceall","version":"1.0.3","description":"Spec-compliant polyfill for String.prototype.replaceAll ESnext proposal","main":"index.js","scripts":{"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)\")\"","pretest":"npm run lint","test":"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 .","postlint":"es-shim-api --bound"},"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":"^15.0.2","auto-changelog":"^1.16.2","es5-shim":"^4.5.13","es6-shim":"^0.35.5","eslint":"^6.7.2","evalmd":"^0.0.19","functions-have-names":"^1.2.0"},"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.17.0-next.1","function-bind":"^1.1.1","has-symbols":"^1.0.1","is-regex":"^1.0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"774bce3c637fe5bd6de343793d65dda862df3829","_id":"string.prototype.replaceall@1.0.3","_nodeVersion":"13.3.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-GF8JS9jtHSDkIsVMsYBPR4dItwaU6xOSPsMcRGTAbBr12ZDfyKMtgxdC2HDFbsMogGel29pmwxioJoXeu9ztIg==","shasum":"f7839a016a290b60769138f4d4938238cbb5a809","tarball":"http://registry-npm.ywwl.com/string.prototype.replaceall/download/string.prototype.replaceall-1.0.3.tgz","fileCount":15,"unpackedSize":17847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9XXFCRA9TVsSAnZWagAAA30P/1UPvLZrk2eNGt9cO1KD\nW0PbfJxA7sH978TftkTUhHFgBLznzJBiKWi4L4UKVWZmgIU/Vqq8CoH3y6yi\nx2S0A1r5lFbTXMPsQTdPZ/VuOp/QJNunn08Gbno/WWu69A8Bm00wX8TBHaRy\nX48tUu/vat1wse0foGq4+p0oUr6bb0iu1vqAPgYgkjoMvDDn+4cD5/qs8cX+\nykIqQhlWcN4DQsceZVIov+uPccDVI8uakd7j6g0tFyb+KLWzPJqKArP0G0xk\nm2zzY5qPbAhDtx2ht3lTfNAR0L05gwEYZBPX1j9old7i6tyN/MVPSNwpcbt6\n4XIjdyLkz0INPo2XI3lp3U7lIE9neRnuB59CqwYk/PExKW4qUbpCL8+cks4H\nWrhOIer2IDlxBAJqwJgY80CUzBs45Ewb6x/Fwohp+o56gtQDt4dPV9H6ZaoJ\nugp9Fip/Z8DfojtUk8hnyZX0gx8rtwGZT/fI+dzC56aLWcHQERVC1dQM6HPc\nhSYIGhxXDNvW59Ta2tKucUOM0KeUSg7XvUBIzPAczl6T4+en1DKmMCKdzk8v\n0A4nT+HFiKnCr9hZWD5Mqh2eI0dr+bKNGIesLCCu7ElrQPvvVOy9N/50WJB6\n2ntf+9ORQocMgh316heDES1FO3V+KkyFvYh0spFcSt0U8Sc/+ezLRksP1SfI\nz7TU\r\n=elp0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6nY7ge6Q4FfHG7skjyegngfRc/F2vPZ/YzILL3GxJhgIgMp1d4KsZJQoNNJEhx+QHNEzGc22rQl8AG0nUTH272Iw="}],"size":6509,"noattachment":false,"key":"/string.prototype.replaceall/-/string.prototype.replaceall-1.0.3.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.replaceall_1.0.3_1576367556650_0.39910565688866106"},"_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":1576367556817,"_cnpm_publish_time":1576367556817,"dist-tags":{"latest":"1.0.11"}}