CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-lodash-kebabcase

The lodash method kebabCase exported as a standalone Node.js module for converting strings to kebab-case format

Overall
score

68%

Evaluation68%

1.08x

Agent success when using this tile

Overview
Eval results
Files

task.mdevals/scenario-4/

String Presentation Toolkit

A utility module for turning messy human-written strings into consistent formats for user interfaces and URLs.

Capabilities

Title formatting

  • Trims extra separators and returns a single-space, title-cased string (e.g., " the_quick-brown fox" -> "The Quick Brown Fox") @test

Slug generation

  • Produces a lowercase, hyphen-separated slug from text containing spaces or punctuation (e.g., "Launch: v2 release!!" -> "launch-v2-release") @test

Identifier casing

  • Converts a phrase with delimiters into lower camel casing, removing punctuation (e.g., "Mega_sale banner" -> "megaSaleBanner") @test

Implementation

@generates

API

/**
 * 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);

Dependencies { .dependencies }

lodash { .dependency }

Utility helpers for string casing and formatting.

Install with Tessl CLI

npx tessl i tessl/npm-lodash-kebabcase

tile.json