String utility methods
Installation
npm install ustring
API
var ustring =
toLowerFirst
ustring == 'aBC'
toUpperFirstFirst
ustring == 'Abc'
hyphenate
ustring == 'this-is-my-word'
humanize
ustring == 'This is a very long sentence'
camelize
ustring == 'ThisIsAVeryLongWord'
endsWith
ustring == trueustring == falseustring == true
is.alphanum
ustringis == trueustringis == false
is.match
ustringis == trueustringis == false
Since match is a curried fn, you can even write
var matches = ustringis
Tests
make
License
MIT