mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-18 08:13:39 -05:00
832 B
832 B
trim-off-newlines 
Similar to
String#trim()but removes only newlines
Install
$ npm install --save trim-off-newlines
Usage
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