Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Provides basic inflection utilities and formatters for camelCase and separations.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .DS_Store
Octocat-spinner-32 README
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
README
# InflectJS
InflectJS Provides basic inflection utilities and formatters for camelCase and separations.

## API
plural(str [, keep_case]) -- Convert a singular word to plural. Lowercases by default.
singular(str [, keep_case]) -- Convert a plural word to singular. Lowercases by default.
camel(str) -- Merge separated words, spaces or otherwise, to a camelcased word.
separate(str, splitter, keep_case) -- Separate words using define separator. Also converts camelcased words. Lowercases by default.
underscores(str, keep_case) -- Alias for separating with _
dashes(str, keep_case) -- Alias for separating with -
pluses(str, keep_case) -- Alias for separating with +
human(str, caps_all) -- Convert separated or camelcased words to a human readable format.
trim(str) -- Trim whitespace from a string.
Something went wrong with that request. Please try again.