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
Create a utility that compiles and renders text templates with adjustable delimiters, imports, and variable naming to produce safe strings.
{ name: "Ada" } to produce "Hello Ada!" @test{ script: "<script>" } into "Safe: <script>" from template "Safe: <%- script %>" @testupper and format, templates can call them directly, e.g. "Hi <%= upper(user.name) %>!" using data { user: { name: "ada" } } yields "Hi ADA!" @test<%= ctx.greeting %> resolve data without relying on an implicit scope, and should still work when data includes keys that shadow reserved words @test@generates
export type DelimiterSet = {
interpolate?: string;
escape?: string;
evaluate?: string;
};
export type RenderSettings = {
delimiters?: DelimiterSet;
imports?: Record<string, unknown>;
variable?: string;
};
export type TemplateRenderer = {
render(template: string, data?: Record<string, unknown>, overrides?: RenderSettings): string;
setBaseSettings(updates: RenderSettings): void;
};
export function createTemplateRenderer(baseSettings?: RenderSettings): TemplateRenderer;Provides string templating with configurable delimiters, escaping, evaluation blocks, imports, and default settings control.
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