7.2.0 • Published 2 years ago

unused-package-remover v7.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

UNUSED PACKAGE REMOVER

Project aimed at automating the removal of unused imports and requires from specified files and also unused packages from package.json.

Installation

Install unused-package-remover with npm

  npm install unused-package-remover -D

Interaction

If you want to enter multiple regex's during interaction process do so by seperating them with commas(,)

For example :

Enter File Path Regex to ignore : */src/*, */component/*, */index.js

Configuration

You can configure Eslint, Putout, Babel files according to your preference by changing them from the path

./node_modules/unused-package/remover/

Scripts

Add root script in your package.json file under "scripts" section :

"scripts": {
    "script": "python3 ./node_modules/unused-package-remover/first.py",
}

Usage

In the terminal run :

npm run script