# is-repeated

> Check if a string has consecutive characters

Latest version **1.0.0** (published 2020-10-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-repeated
pnpm add is-repeated
yarn add is-repeated
bun add is-repeated
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-10-08 |
| First published | 2020-10-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rocktim Saikia |
| Maintainers | rocktimsaikia |
| Keywords | consecutive, repeated, string, str, character, char, is-consecutive, is-repeated |

## Links

- npm: https://www.npmjs.com/package/is-repeated
- Repository: https://github.com/RocktimSaikia/is-repeated
- Homepage: https://github.com/RocktimSaikia/is-repeated#readme
- Issues: https://github.com/RocktimSaikia/is-repeated/issues
- npm.io page: https://npm.io/package/is-repeated

## Dependencies (1)

- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) ^4.0.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-10-08

## README

# is-repeated ![build](https://travis-ci.com/RocktimSaikia/is-repeated.svg?branch=master) ![license](https://img.shields.io/github/license/rocktimsaikia/is-repeated)

> Check if a string has consecutive characters

## Install
```
$ npm install is-repeated
```

## Usage

```js
const isRepeated = require('is-repeated')

isRepeated('foo-bar---baz','-')
//=> true

isRepeated('-bar-', '-'));
//=> false

isRepeated('foo@#@#baz', '@#');
//=> true

isRepeated('baAr', 'a', {ignoreCase: true});
//=> true
```

## API

### isRepeated(input, target, options?)

##### input

*Required*
Type: `string`

#### target

*Required*  
Type: `string`

subtring to run the test against.

#### options

##### ignoreCase

Type: `boolean`<br>
Default: `false`

## Related 

- [`trim-repeated`](https://github.com/sindresorhus/trim-repeated) - Trim a consecutively repeated substring

## Support

<a href="https://www.buymeacoffee.com/7BdaxfI"><img src="https://user-images.githubusercontent.com/33410545/95193575-a3b51b00-07f1-11eb-9bbb-90ea2e1018d7.png" height="60px"/></a>

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