()
| 35 | |
| 36 | Object.defineProperty(exports, "defaults", { |
| 37 | get() { |
| 38 | if (defaults) { |
| 39 | return defaults; |
| 40 | } |
| 41 | |
| 42 | if (process.env["PREFIX"]) { |
| 43 | globalPrefix = process.env["PREFIX"]; |
| 44 | } else if (process.platform === "win32") { |
| 45 | // c:\node\node.exe --> prefix=c:\node\ |
| 46 | globalPrefix = path.dirname(process.execPath); |
| 47 | } else { |
| 48 | // /usr/local/bin/node --> prefix=/usr/local |
| 49 | globalPrefix = path.dirname(path.dirname(process.execPath)); // destdir only is respected on Unix |
| 50 | |
| 51 | if (process.env["DESTDIR"]) { |
| 52 | globalPrefix = path.join(process.env["DESTDIR"], globalPrefix); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | defaults = { |
| 57 | access: null, |
| 58 | "allow-same-version": false, |
| 59 | "always-auth": false, |
| 60 | also: null, |
| 61 | audit: true, |
| 62 | "audit-level": "low", |
| 63 | "auth-type": "legacy", |
| 64 | "bin-links": true, |
| 65 | browser: null, |
| 66 | ca: null, |
| 67 | cafile: null, |
| 68 | cache, |
| 69 | "cache-lock-stale": 60000, |
| 70 | "cache-lock-retries": 10, |
| 71 | "cache-lock-wait": 10000, |
| 72 | "cache-max": Infinity, |
| 73 | "cache-min": 10, |
| 74 | cert: null, |
| 75 | cidr: null, |
| 76 | color: process.env["NO_COLOR"] == null, |
| 77 | depth: Infinity, |
| 78 | description: true, |
| 79 | dev: false, |
| 80 | "dry-run": false, |
| 81 | editor: osenv.editor(), |
| 82 | "engine-strict": false, |
| 83 | force: false, |
| 84 | "fetch-retries": 2, |
| 85 | "fetch-retry-factor": 10, |
| 86 | "fetch-retry-mintimeout": 10000, |
| 87 | "fetch-retry-maxtimeout": 60000, |
| 88 | git: "git", |
| 89 | "git-tag-version": true, |
| 90 | "commit-hooks": true, |
| 91 | global: false, |
| 92 | globalconfig: path.resolve(globalPrefix, "etc", "npmrc"), |
| 93 | "global-style": false, |
| 94 | group: |
nothing calls this directly
no test coverage detected