node-package-cleaner
v1.1.0
Published
Optimize your package.json by removing unused npm packages.
Downloads
8
Maintainers
Readme
node-package-cleaner
node-package-cleaner
is a tool that helps you optimize your package.json
by identifying and removing unused npm packages from your project. It helps reduce package size and speeds up build times by eliminating unnecessary dependencies.
Development Stage:
Please note that this library is currently in development. Features and functionality may change as we work towards a stable release. We appreciate your feedback and contributions during this phase.This library is designed exclusively for Node.js server projects. It does not support other platforms or technologies. To ensure optimal performance and compatibility, please use this library within a Node.js environment.
Features
- Detect Unused Packages: Automatically finds npm packages in your project that are not being used.
- Remove Unnecessary Dependencies: Safely removes unused dependencies from your
package.json
. - Optimize Build Times: Reduces build times by only downloading the necessary packages.
- Easy Integration: Can be easily run via CLI and is compatible with any Node.js project.
Installation
You can install node-package-cleaner
globally:
npm install -g node-package-cleaner
Usage
To use node-package-cleaner
, follow these steps:
Navigate to Your Project Directory:
Make sure you are in the root directory of your Node.js project.
cd /path/to/your/project
Run the Command:
npm-cleanup
Review the Output: The tool will list packages that are detected as unused. Review the list carefully.
Verify Changes: Check your package.json to ensure that the unused packages have been removed. You may also run npm install to update your node_modules directory accordingly.
npm install
Stay in touch
Author - Fatih Güzel