1.0.0-beta.1 • Published 5 years ago
npm-sustainability v1.0.0-beta.1
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:
A configuration object.
The path of the package to check.
An error-first callback that yields:
an array of objects, one per project
an array of URIs that failed to download or validate
1.0.0-beta.1
5 years ago