
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
remove-dependencies
Advanced tools
Quickly removes dependencies from your package.json file.
🔪
You can invoke remove-dependencies on the CLI or via its programmatic Node.js API.
It will remove all requested dependencies from dependencies, devDependencies, and peerDependencies.
npx remove-dependencies
npx remove-dependencies takes in any number of package names to remove from your package.json.
It will remove all requested dependencies from dependencies, devDependencies, and peerDependencies.
For example, to remove the mocha and jest packages:
npx remove-dependencies mocha jest
That command may change your package.json on disk.
npm i remove-dependencies
remove-dependencies exports a removeDependencies function that takes in any number of package names to remove from your package.json.
It will return an object with all requested dependencies removed from dependencies, devDependencies, and peerDependencies.
import { removeDependencies } from "remove-dependencies";
const packageData = {
dependencies: {
// ...
},
// ...
};
const removedData = removeDependencies(packageData);
// { dependencies: ... }
console.log(removedData);
Usually, you can npm uninstall / pnpm uninstall / yarn remove packages away.
But those fully remove dependencies, including changing your node_modules/, and will throw an error if the dependency isn't found.
remove-dependencies ignores any dependencies not found and only changes your package.json file.
It also operates on all three of dependencies, devDependencies, and peerDependencies at once.
In other words, use remove-dependencies in scripts that should quickly modify a package.json file without installing or uninstalling.
See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md.
Thanks! 🔪
Josh Goldberg ✨ 💻 🖋 🤔 🚇 🚧 📆 🔧 📖 |
đź’ť This package was templated with
create-typescript-appusing the Bingo engine.
FAQs
Quickly removes dependencies from your package.json file. 🔪
We found that remove-dependencies demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.