1.0.3 • Published 4 years ago
trim-off-newlines v1.0.3
trim-off-newlines 
Similar to
String#trim()but removes only newlines
Install
$ npm install --save trim-off-newlinesUsage
var trimOffNewlines = require('trim-off-newlines');
trimOffNewlines('\n\nunicorns\n\n');
//=> 'unicorns'Related
trim-left- Similar toString#trim()but removes only whitespace on the lefttrim-right- Similar toString#trim()but removes only whitespace on the right
License
MIT © Steve Mao