MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / toFileName

Function toFileName

packages/cli/lib/utils.js:34–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32const kebabCase = _.kebabCase;
33
34const toFileName = name => {
35 return kebabCase(name).replace(/-(\d+)$/g, '$1');
36};
37
38const RESERVED_PROPERTY_NAMES = ['constructor'];
39

Callers 4

utils.jsFile · 0.85
getModelFileNameFunction · 0.85
getControllerFileNameFunction · 0.85
getServiceFileNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected