Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.117.197.188
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
trim-newlines /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
216
B
-rw-r--r--
2015-09-29 09:07
license
1.09
KB
-rw-r--r--
2015-09-03 05:30
package.json
1.59
KB
-rw-r--r--
2021-02-04 21:24
readme.md
953
B
-rw-r--r--
2015-09-29 09:22
Save
Rename
# trim-newlines [](https://travis-ci.org/sindresorhus/trim-newlines) > Trim [newlines](https://en.wikipedia.org/wiki/Newline) from the start and/or end of a string ## Install ``` $ npm install --save trim-newlines ``` ## Usage ```js var trimNewlines = require('trim-newlines'); trimNewlines('\nunicorn\r\n'); //=> 'unicorn' ``` ## API ### trimNewlines(input) Trim from the start and end of a string. ### trimNewlines.start(input) Trim from the start of a string. ### trimNewlines.end(input) Trim from the end of a string. ## Related - [trim-left](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left - [trim-right](https://github.com/sindresorhus/trim-right) - Similar to `String#trim()` but removes only whitespace on the right. ## License MIT © [Sindre Sorhus](http://sindresorhus.com)