# string-replacesuffix

> Replace suffix match in string with specified value.

Latest version **0.1.3** (published 2018-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install string-replacesuffix
pnpm add string-replacesuffix
yarn add string-replacesuffix
bun add string-replacesuffix
```

## 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.3 |
| Published | 2018-09-24 |
| First published | 2017-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | string, replace, suffix |

## Links

- npm: https://www.npmjs.com/package/string-replacesuffix
- Repository: https://github.com/nodef/string-replacesuffix
- Homepage: https://github.com/nodef/string-replacesuffix#readme
- Issues: https://github.com/nodef/string-replacesuffix/issues
- npm.io page: https://npm.io/package/string-replacesuffix

## 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.3 (latest) — 2018-09-24
- 0.1.2 — 2018-01-06
- 0.1.1 — 2017-12-24
- 0.1.0 — 2017-12-24
- 0.0.7 — 2017-12-24
- 0.0.6 — 2017-12-24
- 0.0.5 — 2017-12-24
- 0.0.4 — 2017-12-24
- 0.0.3 — 2017-12-24
- 0.0.2 — 2017-12-24
- 0.0.1 — 2017-12-24

## README

# string-replacesuffix

> NOTE: [string-replacesuffix](https://www.npmjs.com/package/string-replacesuffix) was renamed to [@extra-string/replace-suffix](https://www.npmjs.com/package/@extra-string/replace-suffix).
[![NPM](https://nodei.co/npm/string-replacesuffix.png)](https://nodei.co/npm/string-replacesuffix/)

Replace [suffix] match in [string] with specified value.

```javascript
const replaceSuffix = require('string-replacesuffix');
// replaceSuffix(<string>, <suffix>, <replaced value>)

replaceSuffix('tinman', 'man', 'woman');
// 'tinwoman'
replaceSuffix('muscleman', 'cle', 'cled');
// 'muscleman'
replaceSuffix('laughed', 'ed', '');
// 'laugh'
```


[suffix]: https://en.wikipedia.org/wiki/Suffix
[string]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String

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