# replaceall

> Replace all instances in a JavaScript string

Latest version **0.1.6** (published 2015-04-23) · 0 weekly downloads

## Install

```sh
npm install replaceall
pnpm add replaceall
yarn add replaceall
bun add replaceall
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2015-04-23 |
| First published | 2014-01-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Lee Crossley |
| Maintainers | leecrossley |
| Keywords | replace, replaceall, replace all, string |

## Links

- npm: https://www.npmjs.com/package/replaceall
- Repository: git@github.com:leecrossley/replaceall
- Homepage: http://ilee.co.uk
- Issues: https://github.com/leecrossley/replaceall/issues
- npm.io page: https://npm.io/package/replaceall

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.1.6 (latest) — 2015-04-23
- 0.1.5 — 2015-02-19
- 0.1.4 — 2015-02-12
- 0.1.3 — 2014-12-14
- 0.1.2 — 2014-08-01
- 0.1.1 — 2014-06-16
- 0.1.0 — 2014-03-25
- 0.0.2 — 2014-02-07
- 0.0.1 — 2014-01-10

## README

# replaceall [![Build Status](https://travis-ci.org/leecrossley/replaceall.png?branch=master)](https://travis-ci.org/leecrossley/replaceall) [![npm version](https://badge.fury.io/js/replaceall.png)](https://npmjs.org/package/replaceall) [![devDependency Status](https://david-dm.org/leecrossley/replaceall/dev-status.png)](https://david-dm.org/leecrossley/replaceall#info=devDependencies)

Replace all instances in a JavaScript string.

### Install with npm

```
npm install replaceall
```

To then include replaceall in your node app:

```
var replaceall = require("replaceall");
```

### Using replaceall

```js
var result = replaceall("instances of this", "with this string", "in this string");
```

### Example

```js
var original = "hello world goodbye world";

replaceall("world", "everyone", original);
// "hello everyone goodbye everyone"

replaceall("l", "z", original);
// "hezzo worzd goodbye worzd"
```

## License

[MIT License](http://ilee.mit-license.org)

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