lowlydba/sustainable-npm
🌱 Globally sets npm configurations to optimize speed and reduce CO₂ emissions.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| audit | Controls whether npm performs a security audit after installing packages. When set to false, npm will skip running the audit (default: false). | no | false |
| fund | Enables or disables funding messages from npm. When disabled, npm will not display funding prompts (default: false). | no | false |
| progress | Determines if a progress bar is displayed during npm operations. Disabling the progress bar can help reduce log noise in CI environments (default: false). | no | false |
| update-notifier | Configures whether npm checks for updates to itself after executing commands. Disabling this can reduce unnecessary network requests (default: false). | no | false |
| prefer-offline | Configures whether npm checks for staleness in cached data. Missing data will still be fetched online. Disabling this can reduce unnecessary network requests (default: false). | no | true |
| loglevel | Sets the logging level for npm. Valid values include: silent, error, warn, http, info, verbose, and silly. For streamlined output, the default is set to 'error' (default: error). | no | error |
| ignore-scripts | Prevents npm from running lifecycle scripts (e.g. postinstall) defined in packages. Reduces install time by skipping spawned processes, network calls, and compilations triggered by scripts. Also protects against supply chain attacks via malicious install scripts (default: true). | no | true |
Outputs
no outputs