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

Function getUnscopedPackageName

packages/tsdocs/src/helper.ts:48–53  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

46 * @param name - Name of the npm package
47 */
48export function getUnscopedPackageName(name: string) {
49 if (name.startsWith('@')) {
50 return name.split('/')[1];
51 }
52 return name;
53}
54
55/**
56 * Get workspace packages and sorted them by location

Callers 1

updateApiDocsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected