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.
javascript-library string slugify sprintf truncate pad case trim latinise escape word wrap stripConvert 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.
camel title case lower upper param dot path constant cases checkUnderscore-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.
utils camel case underscore converter strings objectsConvert a dash/dot/underscore/space separated string to UpperCamelCase: foo-bar → FooBar
camelcase uppercamelcase upper camel caseLowercases the keys and returns a new object.
object assign extend properties lowercase lower-case case keys keyConverts a camelized/dasherized/underscored string into a humanized one: fooBar-Baz_Faz → Foo bar baz faz
humanize human pretty capitalize uppercase case camelcase dash hyphen underscore string str text convertConvert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar
camelcase camel-case camel case dash hyphen dot underscore separator string text convertConvert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
decamelize decamelcase camelcase lowercase case dash hyphen string str text convertRematch is a pattern matching library built for JavaScript and TypeScript. Pattern matching helps you write safer, more readable, and more concise code. Or download a release and pick up lib/rematch.js.
pattern match matching switch functional caseParam case a string. 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.
param case dash hyphenPascal case a string. Explicitly adds a single underscore between groups of numbers to keep readability (E.g. 1.20.5 becomes 1_20_5, not 1205). 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.
caseSnake case a string. 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.
snake case underscoreTitle case a string. 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.
title caseUpper case a string. 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.
upper uppercase locale case change casesCamel 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.
camel case camelcase camel-case dash hyphen dot underscore lodash separator string text convertConstant case a string. 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.
constant case upperDot case a string. 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.
dot case period
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.