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

Function createNpmEnv

cli/src/npm-client.ts:16–23  ·  view source on GitHub ↗
(overrides: Record<string, string> = {})

Source from the content-addressed store, hash-verified

14export const NPM_REGISTRY_URL = 'https://registry.npmjs.org/'
15
16function createNpmEnv(overrides: Record<string, string> = {}): Record<string, string> {
17 return {
18 ...process.env,
19 ...overrides,
20 FORCE_COLOR: '0',
21 npm_config_registry: NPM_REGISTRY_URL,
22 }
23}
24
25/**
26 * Validates an npm package name using the official npm validation package

Callers 2

execNpmInteractiveFunction · 0.85
execNpmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected