MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / slugifyCommandName

Function slugifyCommandName

scripts/docs/src/generate-cli-docs.ts:50–58  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

48}
49
50function slugifyCommandName(name: string): string {
51 const slug = name
52 .trim()
53 .toLowerCase()
54 .replace(/[^a-z0-9]+/g, "-")
55 .replace(/^-+|-+$/g, "");
56
57 return slug.length > 0 ? slug : "command";
58}
59
60function formatYamlValue(value: string): string {
61 const escaped = value.replace(/\\/g, "\\\\").replace(/"/g, '\\"');

Callers 1

buildCommandDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…