Skip to content

Support CI and automation scripts

Compare
Choose a tag to compare
@delfrrr delfrrr released this 09 Nov 06:38
· 26 commits to master since this release

Now you can call npm-consider install and get stats for a local package in the current directory.

Additionally you can provide limits in your package.json

"config": {
  "maxPackagesNumber": 100,
  "maxSizeBites": 840400,
  "allowedLicenseTypes": [
    "permissive",
    "publicDomain",
    "uncategorized"
  ]
}

and call npm-consider install --test in your automation scripts. If all limits are satisfied command will exit with code=0; otherwise code=1.

npm-consider