-
Notifications
You must be signed in to change notification settings - Fork 1
Mirror of inflection-js from Google Code repository.
License
sonnym/inflection-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
String.pluralize(plural) == String renders a singular English language noun into its plural form normal results can be overridden by passing in an alternative String.singularize(singular) == String renders a plural English language noun into its singular form normal results can be overridden by passing in an alterative String.camelize(lowFirstLetter) == String renders a lower case underscored word into camel case the first letter of the result will be upper case unless you pass true also translates "/" into "::" (underscore does the opposite) String.underscore() == String renders a camel cased word into words seperated by underscores also translates "::" back into "/" (camelize does the opposite) String.humanize(lowFirstLetter) == String renders a lower case and underscored word into human readable form defaults to making the first letter capitalized unless you pass true String.capitalize() == String renders all characters to lower case and then makes the first upper String.dasherize() == String renders all underbars and spaces as dashes String.titleize() == String renders words into title casing (as for book titles) String.demodulize() == String renders class names that are prepended by modules into just the class String.tableize() == String renders camel cased singular words into their underscored plural form String.classify() == String renders an underscored plural word into its camel cased singular form String.foreign_key(dropIdUbar) == String renders a class name (camel cased singular noun) into a foreign key defaults to seperating the class from the id with an underbar unless you pass true String.ordinalize() == String renders all numbers found in the string into their sequence like "22nd"
About
Mirror of inflection-js from Google Code repository.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published