deprune
v1.0.1
Published
Prune unused dependencies in your node module
Downloads
1
Maintainers
Readme
deprune
Deprune is a tool for analyzing and Pruning unused dependencies in batches to see: how each dependency is used, which dependencies are useless, and which dependencies are missing from package.json.
Status
Prune your npm module for unused dependencies in batches
Requirements
- Node >= 10.
Installation
$ npm install -g deprune
Use
On the command line
This is the easiest way to use deprune
.
$ deprune
Syntax Support
Depcheck not only recognizes the dependencies in JavaScript files, but also supports these syntaxes:
- JavaScript (ES5, ES6 and ES7)
- React JSX
- CoffeeScript
- Typescript (with
typescript
dependency) - SASS and SCSS (with
node-sass
dependency) - Vue.js (with
@vue/compiler-sfc
dependency)
To get the syntax support by external dependency, please install the corresponding package explicitly. For example, for Typescript user, install deprune with typescript
package:
npm install -g deprune typescript
Inspiration
- npm prune - Remove extraneous packages.
- depcheck - Check your npm module for unused dependencies.
- npm-check - Check for outdated, incorrect, and unused dependencies..