# elegant.string.range

> range string and then replace the ranges with new string

Latest version **0.0.0** (published 2015-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install elegant.string.range
pnpm add elegant.string.range
yarn add elegant.string.range
bun add elegant.string.range
```

## 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.0 |
| Published | 2015-01-13 |
| First published | 2015-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zhonglei Qiu |
| Maintainers | qiu8310 |
| Keywords | string, range, replace |

## Links

- npm: https://www.npmjs.com/package/elegant.string.range
- Repository: http://github.com/qiu8310/elegant.string.range
- Homepage: https://github.com/qiu8310/elegant.string.range
- Issues: https://github.com/qiu8310/elegant.string.range/issues
- npm.io page: https://npm.io/package/elegant.string.range

## 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.0 (latest) — 2015-01-13

## README

# elegant.string.range

> Range string and then replace the ranges with new string

```
var str = 'abc-def';
var rc = new RangedContent(str);

rc.add(0, 3, 'abc');
rc.add(4, 7, 'def');

console.log(rc.replace(function(data) {
  return data[0] + data[0] + data[0];
}));

// output: aaa-ddd

```

## Install

### bower

`bower install elegant.string.range --save`


### node

`npm install elegant.string.range --save`

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