deividfortuna/Detect Node Package Manager

Detects Node.js package manager (npm/yarn/pnpm) and version manager (nvm/nodenv/n)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
working-directoryThe directory to search for package manager lock files. Defaults to the root of the repository.no.
supported-package-managersPackage managers to detect, separated by commas. Valid values are 'npm', 'yarn', and 'pnpm'.nonpm,yarn,pnpm
supported-node-version-managersNode version managers to detect, separated by commas. Valid values are 'nvm', 'nodenv', and 'n'.nonvm,nodenv,n
namedescription
package-managerThe detected package manager for the current project.
node-version-managerThe detected Node.js version manager for the current project.
node-version-fileThe name of the file that specifies the Node.js version for the project, if found (e.g., .nvmrc, .node-version).
lockfileThe path to the lock file associated with the detected package manager, relative to the working directory.