New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

package-management

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-management

Simple type-safe utilities for programmatically installing and importing packages

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
29
-94.09%
Maintainers
1
Weekly downloads
 
Created
Source

package-management

Type-safe utilities for detecting and operating JavaScript package managers. Supports npm, pnpm, Yarn, and Bun projects.

Install

pnpm add package-management

Detect the current package manager

import { definePackageManagerClient } from "package-management";

const packageManager = await definePackageManagerClient({ cwd: process.cwd() }).findPackageManager();
console.log(packageManager.id);

Keywords

package-management

FAQs

Package last updated on 01 Sep 2026

Related posts