1.0.7 • Published 6 years ago

string-remove-rn v1.0.7

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

string-remove-rn

去除\r\n 或者 \r 或者 \n。 remove the \r\n or \r or \n.

install

npm install --save string-remove-rn

use

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"`
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago