MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / listUserPackages

Function listUserPackages

cli/src/npm-client.ts:556–559  ·  view source on GitHub ↗
(user: string)

Source from the content-addressed store, hash-verified

554 * Returns a map of package name to permission level
555 */
556export async function listUserPackages(user: string): Promise<NpmExecResult> {
557 validateUsername(user)
558 return execNpm(['access', 'list', 'packages', `@${user}`, '--json'], { silent: true })
559}
560
561/**
562 * Initialize and publish a new package to claim the name.

Callers 1

createConnectorAppFunction · 0.90

Calls 2

validateUsernameFunction · 0.85
execNpmFunction · 0.85

Tested by

no test coverage detected