Skip to content

nichoth/check-max-deps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check max deps

A script that will check the number of dependencies in a project, and exit with a pass or fail exit code.

This can be helpful as a part of the package scripts.

install

npm i -D @nichoth/check-max-deps

use

check-deps $DIR $COUNT

example

From the CLI, check the that the dependencies in . are at most 1:

npx check-deps . 1

To check that you have 0 dependencies before bumping the version:

{
  "scripts": {
    "preversion": "check-deps . 0"
  }
}

test

npm test

About

Check that you don't have too many dependencies

Resources

Stars

Watchers

Forks