# string-remove-rn

> remove string \r\n

Latest version **1.0.7** (published 2018-07-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install string-remove-rn
pnpm add string-remove-rn
yarn add string-remove-rn
bun add string-remove-rn
```

## 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.7 |
| Published | 2018-07-09 |
| First published | 2018-07-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | dearzoe |
| Maintainers | dearzoe |
| Keywords | string, remove, rn, \r, \n, \r\n, removern, stringrn |

## Links

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

## 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

- 1.0.7 (latest) — 2018-07-09
- 1.0.6 — 2018-07-09
- 1.0.5 — 2018-07-09
- 1.0.4 — 2018-07-09
- 1.0.3 — 2018-07-09
- 1.0.2 — 2018-07-09
- 1.0.1 — 2018-07-09
- 1.0.0 — 2018-07-09

## README

### string-remove-rn
去除\r\n 或者 \r 或者 \n。
remove the \r\n or \r or \n.

<a href="https://www.npmjs.com/package/string-remove-rn"><img src="https://img.shields.io/npm/v/string-remove-rn.svg?style=flat-square"></a>
<a href="https://www.npmjs.com/package/string-remove-rn"><img src="https://img.shields.io/npm/dm/string-remove-rn.svg?style=flat-square"></a>


### install

```bash
npm install --save string-remove-rn
```

### use

```js
const stringRn = require('string-remove-rn');

let str = `这里是我从数据库拿到的内容，带"\\r\\n"\r\n直接拿到在字符串赋值处理中火报错，所以去除"\\r\\n"`
//参数 string ['rn'(默认)、'r'、'n']
stringRn(str,'rn');

// 输出 =>
`这里是我从数据库拿到的内容，带"\r\n"直接拿到在字符串赋值处理中火报错，所以去除"\r\n"`
```

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