MCPcopy Create free account
hub / github.com/vercel/vercel / normalizePackageName

Function normalizePackageName

packages/python-analysis/src/manifest/pep508.ts:57–59  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

55 * normalizePackageName("My_Package.Name") // "my-package-name"
56 */
57export function normalizePackageName(name: string): string {
58 return name.toLowerCase().replace(/[-_.]+/g, '-');
59}
60
61/**
62 * Format a normalized requirement as a PEP 508 dependency string.

Callers 8

generateProjectManifestFunction · 0.90
generateBundleMethod · 0.90
enqueueDepsFunction · 0.90
toposortQuirksFunction · 0.90
runQuirksFunction · 0.90
extendDistRecordFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected