For a longer time I have pondered why there aren’t more robust Javascript string utility libraries that have developer friendly APIs. I have been spoiled by the Rails frameworks with sugary utility methods like:
camelcase, camelize, classify, constantize, dasherize, deconstantize, demodulize, humanize, isBlank, parameterize, pluralize, tableize, titlecase, titleize, underscore
I note that some of these you can easily find one-off implementations of but most implementations are painful to use with other JS libraries since they usually use a nasty form of prototypal inheritance that drops any additions libraries like Jquery or Prototype make to the prototype.
Have I been living in a closet for the last decade, who has the magic here? I am not really looking for examples of how to implement, but for a library that works with jQuery and other toys I already have in the box.
Have a look at UNDERSCORE STRING