ts-pkgx is a TypeScript-first library and command-line interface (CLI) designed for managing software packages across different environments. It provides a programmatic API that allows developers to integrate package management functionalities directly into their applications, abstracting away the specifics of underlying package managers. Concurrently, it offers a robust CLI for direct system-level operations, similar in scope to universal package managers like Homebrew or the package handling capabilities within modern runtimes like Bun. The current stable version is 0.4.154. It exhibits a highly rapid release cadence, with numerous patch versions (e.g., v0.4.144 through v0.4.154) often released in close succession, though recent updates frequently state 'No significant changes.' This suggests an active but perhaps automated development and release workflow. Its primary differentiation lies in offering a cohesive TypeScript-friendly library interface alongside a powerful command-line tool, enabling both application-embedded and standalone package lifecycle management.
npm install ts-pkgxVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to programmatically install, list, get details for, and uninstall a package using the ts-pkgx library functions, along with comments on CLI usage.
Consult the official documentation for supported package manager integrations and configuration options before assuming behavior.
Pin to exact patch versions in production environments (`"ts-pkgx": "~0.4.154"` or `"ts-pkgx": "0.4.154"`) and thoroughly test updates before deployment.
Ensure the user or process executing ts-pkgx has the necessary permissions. For library calls, handle potential permission-denied errors gracefully.
Run the command with `sudo` (e.g., `sudo npx ts-pkgx install <package>`) or ensure the executing user/process has write access to the target directories.
Verify that your `tsconfig.json` targets `ES2020` or higher with `module: 'NodeNext'` or `'ESNext'`, and use `import { installPackage } from 'ts-pkgx';`.Double-check the package name for typos. Verify ts-pkgx's documentation for supported package types and sources, and ensure the necessary underlying package managers (e.g., Homebrew) are installed and configured.
No dependency data recorded yet.