{"name":"string.prototype.replaceall","version":"1.0.7","description":"Spec-compliant polyfill for String.prototype.replaceAll ESnext proposal","main":"index.js","scripts":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","pretest":"npm run lint","test":"npm run tests-only","posttest":"aud --production","tests-only":"nyc tape 'test/**/*.js'","prelint":"evalmd *.md","lint":"eslint --ext=js,mjs .","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.2.3","@ljharb/eslint-config":"^21.0.0","aud":"^2.0.1","auto-changelog":"^2.4.0","es5-shim":"^4.6.7","es6-shim":"^0.35.6","eslint":"=8.8.0","evalmd":"^0.0.19","functions-have-names":"^1.2.3","in-publish":"^2.0.1","npmignore":"^0.3.0","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.6.1"},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.4","es-abstract":"^1.20.4","get-intrinsic":"^1.1.3","has-symbols":"^1.0.3","is-regex":"^1.1.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"265c568369e9d34985819e39bd88e4a43f4602f2","_id":"string.prototype.replaceall@1.0.7","_nodeVersion":"19.0.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-xB2WV2GlSCSJT5dMGdhdH1noMPiAB91guiepwTYyWY9/0Vq/TZ7RPmnOSUGAEvry08QIK7EMr28aAii+9jC6kw==","shasum":"6cf36b20bcb12d55653e1119ddf5bc1d6363103d","tarball":"http://registry-npm.ywwl.com/string.prototype.replaceall/download/string.prototype.replaceall-1.0.7.tgz","fileCount":22,"unpackedSize":26715,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+8mlKson9aGM1ca4pQMGETwV5Wv5jNQoNC+ugGIPwmwIgZXHL98HoewiKOqUrsYhHvMGPNj4Y4CNL9VYWkKRoAKg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaVa9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+HA/9G9tlw5UzBI9DpgZRfZ69SoPB1GssnSak7Xt5UGVJ9EVWY/4w\r\nnPkwTCnM931KgBfCLiPqwkSLFwMZOqqAUlG/CclgWisKcgf+dj/qP9B8vbMz\r\n79qt78b2Tutu8XDGJD6gRFFXgl5YtvUDwws3MiH3XPDabR4t8EQrwmOBFNtp\r\n2HxMz8W/zsCRg3bEKdEHRv1R2Vrm7njtqcLf4ilEYiox277ABLX4rvXDmbga\r\n8LJzL5lfe4wKgfwOWnauADC3tKpQNcTAL4WusfO+yeI8G9yJbuM5Mz+G3/7Q\r\npFRLxP2hzbN9ouMo7XJdQGDkxo3ddldjVtcy5Cd5T48f3RndAzMQwxLjD2K/\r\nVVaBp9zSbNFK8GND607HhWjQEGJHygIscvGrIxzGMWncPn+aEvxafN1vWRmc\r\nuYg1nUt0awGp7YgsULdfXiy+1LY8TWqppn6RtOCKftt8sVEdcFfNa+aTaXfp\r\nYJ/+SJBpGjIhMGjucyTsctxhg4SeTUGQTYbaQZUH+9elsYkHZLjFeJaXjrhh\r\nd+bij4XZy42FKY9BqUS68Q83rgnwNauloBWEDqlf0QDnlmI3XEP2s62pyg39\r\ny0sbl9mTbGr87IDD3qPIxUT6sgjG9MLwGg/9Q6Tk6VZd/YLw1rk6swOClHmS\r\nRuGf8+rOhEw5l7wpthiBz0DyVw6RBtsvy7Q=\r\n=IDez\r\n-----END PGP SIGNATURE-----\r\n","size":8932,"noattachment":false,"key":"/string.prototype.replaceall/-/string.prototype.replaceall-1.0.7.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.7_1667847868900_0.8320922069780241"},"_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":1667847869156,"_cnpm_publish_time":1667847869156,"dist-tags":{"latest":"1.0.11"}}