package-management 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -0
  2. package/package.json +2 -1
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # package-management
2
+
3
+ Type-safe utilities for detecting and operating JavaScript package managers.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ pnpm add package-management
9
+ ```
10
+
11
+ ## Detect the current package manager
12
+
13
+ ```ts
14
+ import { definePackageManagerClient } from "package-management";
15
+
16
+ const packageManager = await definePackageManagerClient({ cwd: process.cwd() }).findPackageManager();
17
+ console.log(packageManager.id);
18
+ ```
package/package.json CHANGED
@@ -2,9 +2,10 @@
2
2
  "name": "package-management",
3
3
  "description": "Simple type-safe utilities for programmatically installing and importing packages",
4
4
  "keywords": [
5
+ "package-management",
5
6
  "package-manager"
6
7
  ],
7
- "version": "0.0.13",
8
+ "version": "0.0.15",
8
9
  "type": "module",
9
10
  "private": false,
10
11
  "repository": {