Trimmer
Trim characters from either side of a string.
Installation
npm install trimmer --save
API
var trim =
trim(string [, characters])
trim.left(string [, characters])
trim.right(string [, characters])
P.S.: characters
can be one of either an string, array or function.
//=> 'test'trimleft' test ' //=> 'test 'trimright' test ' //=> ' test' //=> 'es' //=> 'test'trimleft'test' 't' //=> 'est'trimright'test' 't' //=> 'tes'
License
MIT