Similar to
String#trim()
but removes only whitespace on the left
$ npm install --save trim-left
var trimLeft = require('trim-left');
trimLeft(' unicorn ');
//=> 'unicorn '
trim-right
- Similar toString#trim()
but removes only whitespace on the righttrim-off-newlines
- Similar toString#trim()
but removes only newlines
MIT © Sindre Sorhus