deividfortuna/Detect Node Package Manager
Detects Node.js package manager (npm/yarn/pnpm) and version manager (nvm/nodenv/n)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| working-directory | The directory to search for package manager lock files. Defaults to the root of the repository. | no | . |
| supported-package-managers | Package managers to detect, separated by commas. Valid values are 'npm', 'yarn', and 'pnpm'. | no | npm,yarn,pnpm |
| supported-node-version-managers | Node version managers to detect, separated by commas. Valid values are 'nvm', 'nodenv', and 'n'. | no | nvm,nodenv,n |
Outputs
| name | description |
|---|---|
| package-manager | The detected package manager for the current project. |
| node-version-manager | The detected Node.js version manager for the current project. |
| node-version-file | The name of the file that specifies the Node.js version for the project, if found (e.g., .nvmrc, .node-version). |
| lockfile | The path to the lock file associated with the detected package manager, relative to the working directory. |