# combo-breaker

> Break consecutive repetition of a string in Node.js and browsers.

Latest version **0.0.1** (published 2014-06-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install combo-breaker
pnpm add combo-breaker
yarn add combo-breaker
bun add combo-breaker
```

## 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.0.1 |
| Published | 2014-06-22 |
| First published | 2014-06-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Nizar Khalife Iglesias |
| Maintainers | khalifenizar |
| Keywords | break, consecutive, repetition, string, repeat, combo |

## Links

- npm: https://www.npmjs.com/package/combo-breaker
- Repository: git@github.com:khalifenizar/combo-breaker
- Homepage: https://github.com/khalifenizar/combo-breaker
- Issues: https://github.com/khalifenizar/combo-breaker/issues
- npm.io page: https://npm.io/package/combo-breaker

## Dependencies (1)

- [quotemeta](https://npm.io/package/quotemeta.md) 0.0.0

## 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.0.1 (latest) — 2014-06-22

## README

combo-breaker
=============

Break consecutive repetition of a string in Node.js and browsers.


Examples
--------

```js
var comboBreaker = require('combo-breaker'),
    redundant,
    broken
;

redundant = 'I really really really really love pizza.';

broken = comboBreaker(redundant, 'really ');
console.log(broken); // "I really love pizza."

broken = comboBreaker(redundant, 'really ', { keep: 2 });
console.log(broken); // "I really really love pizza."

```


API
---

### comboBreaker(str, combo[, options]) ###

Searches string `str` for consecutive repetitions of `combo` and returns a copy of `str` with the repetitions replaced by a single `combo`. Use `options.keep` (`integer`) to keep more than one (or no) `combo`.


Install
-------

Install with [npm](https://www.npmjs.org/):

```
npm install combo-breaker
```


License
-------

ISC

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