dep-trimmer
v2.0.2
Published
A tool to trim unused npm dependencies
Downloads
20
Readme
Deptrimer
Deptrimer is a command-line tool designed to help developers manage and maintain their JavaScript applications by identifying and removing unused or deprecated dependencies. In large projects that evolve over time, dependencies can become outdated or redundant. This tool assists in keeping your project clean and up-to-date, ensuring that unused dependencies are removed to optimize your application's performance.
Installation
Install dep-trimmer with npm
npm install dep-trimmerHow to use
*IMPORTANT by the momnent you have 2 ways to implement this to your projects:
**Modify your package.json adding this line per command **
"scripts": {
"analyze": "dep-trimmer --analyze"
}and after add this line on your scripts you just run like any other scripts
npm run analyzeor you just global install but this second choice is not recommended but if u global install u just run it like cli command without npm run
To run this tool, use the following commands:
Analyze your project's dependencies to find unused ones:
dep-trimmer --analyzeThis will scan your project and display a report of dependencies that are either unused or imported but not used.
Remove unused dependencies from your project:
dep-trimmer --remove
This will uninstall all dependencies that are found to be unused based on the analysis.
Display help information to see all available options:
dep-trimmer --help
This will uninstall all dependencies that are found to be unused based on the analysis.
Note: It's recommended to first run the analysis before removing dependencies to avoid accidental deletion of needed packages.
Tech Stack
commander: para el manejo de la línea de comandos.
ora: para mostrar indicadores de carga.
read-pkg: para leer el archivo package.json.
chalk: para colores en la consola.
figlet: para generar arte ASCII.
Authors
Support
For support, email [email protected] or just make a issue
