MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / dockerComposeProjectName

Function dockerComposeProjectName

packages/setupWizard/src/index.ts:272–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270// Mirrors Docker Compose's project-name normalization for the default case
271// where the project name is derived from the working directory basename.
272function dockerComposeProjectName(): string {
273 return basename(process.cwd())
274 .toLowerCase()
275 .replace(/[^a-z0-9_-]/g, '');
276}
277
278async function listExistingDockerVolumes(expectedNames: string[]): Promise<string[]> {
279 if (expectedNames.length === 0) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected