MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / toFilePrefix

Function toFilePrefix

apps/api/scripts/codegen/new-resource.ts:48–49  ·  view source on GitHub ↗
(pascal: string)

Source from the content-addressed store, hash-verified

46};
47
48const toFilePrefix = (pascal: string): string =>
49 pascal.charAt(0).toLowerCase() + pascal.slice(1);
50
51const toSingularEntity = (pascal: string): string =>
52 pascal.length > 1 && pascal.endsWith("s") ? pascal.slice(0, -1) : pascal;

Callers 1

new-resource.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected