
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
get-package-manager
Advanced tools

npm i get-package-manager
or
yarn add get-package-manager
To get installed package manager run:
import { getPackageManager } from 'get-package-manager'
const pkg = getPackageManager()
console.log(pkg) // logs npm|yarn|pnpm
To get preferred package manager use:
const pkg = getPackageManager({ prefer: 'npm'})
console.log(pkg) // logs npm
MIT
FAQs
Get installed node package manager
We found that get-package-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.