npm-patched-api
v1.0.0
Published
an unofficial patched version of the npm package manager.
Maintainers
Readme
npm-patched-api
A patched fork of npm that restores a programmatic API for use in Node.js scripts.
Disclaimer: This is not the official npm. It is a modified version of npm v20.19.5 with intentional changes. Use at your own risk.
Features
- Re-enables the ability to require 'npm-patched-api' in Node.js scripts.
- Provides a programmatic API to run npm commands directly from code.
- Retains all standard npm CLI functionality for compatibility.
Installation
Install globally using npm:
npm install -g npm-patched-api
Make sure this does not conflict with your global npm installation.
Usage Example
Require the package in your Node.js script and call npm commands programmatically. For example, you can require 'npm-patched-api' and use npm.install with an array of package names and a callback to handle errors or completion.
Important Notes
This fork differs from the standard npm:
- The programmatic API is restored.
- Some internal CLI checks are bypassed.
Users should avoid mixing this fork with official npm installs in production.
No npm trademarks or logos are used in this package.
License
This package is licensed under the Artistic License 2.0. Original npm copyright (c) npm, Inc. and contributors. Modified by purcwix for npm-patched-api (2025).
