Displaying 1 to 12 from 12 results

change-case - Convert strings between camelCase, PascalCase, Title Case, snake_case and more

  •    Javascript

Convert strings between camelCase, PascalCase, Title Case, snake_case, lowercase, UPPERCASE, CONSTANT_CASE and more. All methods support Unicode (non-ASCII characters) and non-string entities, such as objects with a toString property, numbers and booleans. Empty values (null and undefined) will result in an empty string.

humps - 🐫 Underscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript

  •    Javascript

Underscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript. When converting object keys, it will walk the structure, converting any nested objects (or arrays of nested objects) along the way. Handy for converting JSON between JavaScript and Ruby/Rails APIs.

uppercamelcase - Convert a dash/dot/underscore/space separated string to UpperCamelCase: foo-bar → FooBar

  •    Javascript

Convert a dash/dot/underscore/space separated string to UpperCamelCase: foo-bar → FooBar




camel-case - Camel case a string in JavaScript

  •    Javascript

Camel case a string. Explicitly adds a single underscore between groups of numbers to maintain readability and reversibility (E.g. 1.20.5 becomes 1_20_5, not 1205), by default. Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString property, numbers and booleans. Empty values (null and undefined) will result in an empty string.

to-camel-case - Convert a string to a camel case.

  •    Javascript

Convert a string to a camel case. Part of the series of case helpers. Returns the string converted to camel case.


to-no-case - Remove an existing case from a string.

  •    Javascript

Remove any existing casing from a string. Part of the series of case helpers. If you specifically want to receive space case strings as the output, without any other odd characters, check out to-space-case instead. Or one of the other case helpers.

Case - String case utitility: convert, identify, flip, extend

  •    Javascript

Each of the following functions will first "undo" previous case manipulations before applying the desired case to the given string. Case.sentence(str, names) accepts an array of proper names that should be capitalized, regardless of location in the sentence. This function is specialized, but useful when dealing with input generated with capslock on (i.e. everything my grandma types).

snakecase-keys - Convert an object's keys to snake case

  •    Javascript

An object to transform into snake case (keys only). Enables snake-casing of keys in nested objects.