1.0.0-beta.1 • Published 5 years ago

npm-sustainability v1.0.0-beta.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

collect sustainability data for your npm dependencies

Command Line Program

To run with npx:

cd your-npm-project
npx npm-sustainability

To install and use npm-sustainability globally:

npm install --global npm-sustainability
cd your-npm-project
npm-sustainability

To install as a development dependency of your package:

cd your-npm-project
npm install --save-dev npm-sustainability

For output as newline-delimited JSON objects, for further processing:

cd your-npm-project
npm-sustainability --ndjson

JavaScript Module

The package exports an asynchronous function of three arguments:

  1. A configuration object.

  2. The path of the package to check.

  3. An error-first callback that yields:

    • an array of objects, one per project

    • an array of URIs that failed to download or validate