MCPcopy
hub / github.com/QwikDev/qwik / parseInputName

Function parseInputName

packages/qwik/src/cli/new/run-new-command.ts:242–249  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

240}
241
242function parseInputName(input: string) {
243 const parts = input.split(/[-_\s]/g);
244
245 return {
246 slug: toSlug(parts),
247 name: toPascal(parts),
248 };
249}
250
251function toSlug(list: string[]) {
252 return list.join('-');

Callers 1

runNewCommandFunction · 0.85

Calls 2

toSlugFunction · 0.85
toPascalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…