Displaying 1 to 18 from 18 results

voca - The ultimate JavaScript string library

  •    Javascript

The Voca library offers helpful functions to make string manipulations comfortable: change case, trim, pad, slugify, latinise, sprintf'y, truncate, escape and much more. The modular design allows to load the entire library, or individual functions to minimize the application builds. The library is fully tested, well documented and long-term supported. Voca can be used in various environments.

match-casing - Match the case of `value` to that of `base`

  •    Javascript

Match the case of value to that of base.Transform the case in value (string) to match that of base (string).




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.


pascalcase - Convert a string to pascal-case.

  •    Javascript

Convert a string to pascal-case. Copyright © 2015 Jon Schlinkert Released under the MIT license.

dashify - Convert a camelcase or space-separated string to a dash-separated string.

  •    Javascript

Convert a camelcase or space-separated string to a dash-separated string. ~12 sloc, fast, supports diacritics. Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.

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.

to-slug-case - Convert a string to a slug case.

  •    Javascript

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

to-snake-case - Convert a string to a snake case.

  •    Javascript

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

to-title-case - Convert a string to a title case.

  •    Javascript

Convert a string to a title case. Part of the series of case helpers. Returns the string converted to title case, preserving punctuation.

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).