Skip to content

Github action check for dependencies in package.json that not used in the code.

License

Notifications You must be signed in to change notification settings

Amr-Reda/npm-unused-packages-checker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Unused Packages Checker Action

Github action check for dependencies in package.json that not used in the code.

Inputs

IGNORE_PATTERNS

Optional List of Glob patterns for paths to ignore. Default [].

IGNORE_PACKAGES

Optional List of packages that exist in package.json and not used in the code to ignore and mark them as used. Default [].

Outputs

NOT_USED_PACKAGES

List of packages in package.json and not used in the code.

Example usage

- uses: actions/checkout@v1
- name: packages check
  uses: Amr-Reda/npm-unused-packages-checker@v1
  with:
    IGNORE_PACKAGES:  '["jade"]'
    IGNORE_PATHS:  '["/test"]'

TODO:

  • Generate pull request to remove unused package from package.json

About

Github action check for dependencies in package.json that not used in the code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published