{"name":"string.prototype.replaceall","version":"1.0.0","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"},"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":"^14.1.0","auto-changelog":"^1.16.0","es5-shim":"^4.5.13","es6-shim":"^0.35.5","eslint":"^6.3.0","evalmd":"^0.0.19","functions-have-names":"^1.1.1"},"dependencies":{"es-abstract":"^1.14.1","function-bind":"^1.1.1","has-symbols":"^1.0.0","is-regex":"^1.0.4"},"auto-changelog":{"output":"CHANGELOG.md","unreleased":false,"commitLimit":false,"backfillLimit":false},"gitHead":"0ccb28a1c198ba46cadbcba3dd2b5ee41bab97d5","_id":"string.prototype.replaceall@1.0.0","_nodeVersion":"12.9.1","_npmVersion":"6.10.2","dist":{"integrity":"sha512-WwUugMs5mRmfjlaF8v6262hf5O3mEfQLY11TQAu4Q4BVUaHBN3RXNhuhSXBnWgk0OGBOFAWW4MajIKiIP2bMIg==","shasum":"840fd8cfcb1dac03f33dfac568498455117c6b13","tarball":"http://registry-npm.ywwl.com/string.prototype.replaceall/download/string.prototype.replaceall-1.0.0.tgz","fileCount":15,"unpackedSize":23311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdb117CRA9TVsSAnZWagAA1NIP/2NeMzfQoi6DgX8QAUw8\ngQr2khvqec1X8vPkNxytcQdfyzZBWaQsaTxzkQXEDs1xYJdAkiNYwUyGQ/h9\nOI9m0x1i7AY8AvLv5YwPm3UI88i7fXKeXHLnkrUoCm+h42wORwV5RZ7zuOrA\nB6EtHk55YWALfHaO9rycH/6KbEaFfmRUl4ol3cNS/6tEq6+qxm8uJDWil114\nA9Fwfi4Wc2rxhwddAcIRGq0xtPRmNLoiX2aI4FBw3KbLORt8qXA+kGGZaYYK\n9CFvQX3e36WwWao3s67QhKY7bkO/FI1ozMWi6jtzfuP0WnCAYUSuAKKz/IB6\nqiMtM4EVv/Atll7kaQKsj/jLGCbp+EpG/Es9yRZjnPszkLpe330iII+ZTa+Z\neSmdhNt6mdHTkFi+3uT+eA7HncQM0VDgkho7ODe9JalCOvYCbec4DThcX0l+\nucHJOrZzK44NduTP3Ast1meBWcNPK1DXawgl9wnSg4HCpZrEY00awe/IXZyG\nGI8uB9Jonsz4+VsM46LuN/OFB4pePyN1MXZV9CeRX1wiDRYb5p+/V4Inl+Ac\nXp2NOPfjNu6FoTLMOsOacR2BbGfR4Kh9Dhbs01WUz0/rf+Up2hbNjgKQrtuy\nc0uh0MHc0ifV3wlC462Vub4kQ7u/88tO2VWBTeX9yiccvgOGF5liW8Jbfohu\n4ckm\r\n=tFkD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9MRz0KFjzTtSHiS4PFDSbkeBRaMXJv2U8oOBWp7wAhQIhAKuM4BG7M2uWFII3nIHog1S7nmL55LdVGAUxCEx4CzkM"}],"size":6205,"noattachment":false,"key":"/string.prototype.replaceall/-/string.prototype.replaceall-1.0.0.tgz"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string.prototype.replaceall_1.0.0_1567579514228_0.17002311002521608"},"_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":1567579514585,"_cnpm_publish_time":1567579514585,"dist-tags":{"latest":"1.0.11"}}