Closed binarykitchen closed 10 years ago
toLowerCase() has nothing to do with this module, it's a method of the string object... "Hello".toLowerCase(); // -> "hello"
more infos here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase
take a look at https://npmjs.org/package/to-camel-case
hope this helps ;-)
Oh I see. Thx!
Hi there
Do you think you could add a
toCamelCase
next totoLowerCase
?So that
slug('/video/create').toCamelCasel()
results into
'videoCreate'
?Thx!