cnpm/npminstall ? reverse-engineered prompt
Reverse engineered prompt
Build me a Node.js tool called npminstall that makes installing npm packages faster and easier than the normal npm install flow.
I want it to work both as a command line app and as a library. From the CLI, it should be able to install dependencies from a package.json, install a single package or version range, install from a folder, tarball, git url, or GitHub repo, and also support uninstall and symlinking a folder. It should handle global installs, save flags, production only installs, custom registries, China mirror mode, ignore scripts, optional dependencies, engine checks, license blocking, and a flatten mode for dependency layout.
Please make it behave like a real package manager for common npm cases, including bins, scoped packages, peer dependencies, workspaces, and postinstall scripts. Use a pnpm like store structure if that helps with speed and deduping. Node 20 and Python 3 should be the expected environment. If anything is unclear, look up the current docs online and follow the project README closely.
Are you gonna build this?
make sure you review the code using coderabbit