Bachir Soussi Chiadmi 0611418f7a added whole system from ola4doc | 7 år sedan | |
---|---|---|
.. | ||
index.js | 7 år sedan | |
license | 7 år sedan | |
package.json | 7 år sedan | |
readme.md | 7 år sedan |
Trim newlines from the start and/or end of a string
$ npm install --save trim-newlines
var trimNewlines = require('trim-newlines');
trimNewlines('\nunicorn\r\n');
//=> 'unicorn'
Trim from the start and end of a string.
Trim from the start of a string.
Trim from the end of a string.
String#trim()
but removes only whitespace on the leftString#trim()
but removes only whitespace on the right.MIT © Sindre Sorhus