# str-replaceallof-es

> replaceAllOf

Latest version **1.0.0** (published 2026-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install str-replaceallof-es
pnpm add str-replaceallof-es
yarn add str-replaceallof-es
bun add str-replaceallof-es
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-01-27 |
| First published | 2026-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tj |
| Maintainers | tj-commits |

## Links

- npm: https://www.npmjs.com/package/str-replaceallof-es
- Repository: https://github.com/10xly/str-replaceallof-es
- Homepage: https://github.com/10xly/str-replaceallof-es#readme
- Issues: https://github.com/10xly/str-replaceallof-es/issues
- npm.io page: https://npm.io/package/str-replaceallof-es

## Dependencies (7)

- [uncurry-x](https://npm.io/package/uncurry-x.md) ^1.0.1
- [times-loop](https://npm.io/package/times-loop.md) ^3.0.0
- [string-intrinsic-ai](https://npm.io/package/string-intrinsic-ai.md) ^1.0.1
- [uncurried-intrinsics](https://npm.io/package/uncurried-intrinsics.md) ^1.0.3
- [@positive-numbers/one-hundred](https://npm.io/package/@positive-numbers/one-hundred.md) ^5.0.0
- [lolite.__private.multiplyfallback](https://npm.io/package/lolite.__private.multiplyfallback.md) ^1.1.16
- [phantomjs-polyfill-string-includes](https://npm.io/package/phantomjs-polyfill-string-includes.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2026-01-27

## README

# str-replaceallof-es
`String.prototype.replaceAll` alternative

## Installation
```bash
npm install str-replaceallof-es
```

## Usage
```js
const replaceAll = require("str-replaceallof-es")

const myString = "foo foo foo"

console.log(replaceAll(myString, "foo", "bar")) // "bar bar bar"

replaceAll.shim()

console.log(myString.replaceAllOf("foo", "bar")) // "bar bar bar"
```
## tests
git clone and run npm test

---
_Source: https://npm.io/package/str-replaceallof-es · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
