The lodash method kebabCase exported as a standalone Node.js module for converting strings to kebab-case format
Overall
score
68%
Evaluation — 68%
↑ 1.08xAgent success when using this tile
A utility module for turning messy human-written strings into consistent formats for user interfaces and URLs.
" the_quick-brown fox" -> "The Quick Brown Fox") @test"Launch: v2 release!!" -> "launch-v2-release") @test"Mega_sale banner" -> "megaSaleBanner") @test@generates
/**
* Converts a string with mixed separators into a single-space, title-cased phrase.
*/
export function toTitle(input);
/**
* Converts text into a lowercase, hyphen-separated slug with duplicate separators collapsed.
*/
export function toSlug(input);
/**
* Converts text into a lower camelCase identifier with non-alphanumeric separators removed.
*/
export function toCamel(input);Utility helpers for string casing and formatting.
Install with Tessl CLI
npx tessl i tessl/npm-lodash-kebabcasedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10