Nocturnal Practitioners of Magic

npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

npm-sustainability

1.0.0-beta.1 • Public • Published

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

Keywords

none

install

npm i npm-sustainability

Downloadsweekly downloads

0

version

1.0.0-beta.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability