🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

carbon-footprint

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carbon-footprint

Calculate your carbon footprint. Food, transport, purchases, fashion, electricity and digital activities like streaming.

latest
Source
npmnpm
Version
1.7.0
Version published
Weekly downloads
175
-67.29%
Maintainers
1
Weekly downloads
 
Created
Source

Carbon Footprint Diagnostic 🏭👣🩺

Contributor Covenant Build Status

Calculate your carbon footprint. Food, transport, purchases, fashion, electricity and digital activities like streaming, cryptoArt or blockchain.

Used in NMF.earth open-source project. Can be found on NPM.

Units 🌐

Unit of measurement used in the project are following the International System of Units to avoid confusion and make everything easy to remember : seconds for time, energy in joules, mass in kilogram, distance in meters, memory in bits.

Therefore meter is used instead of kilometer for distance and any mass is in kilogram.

Install 📦

yarn add carbon-footprint or npm install carbon-footprint

How to use 🔥

import { transport } from 'carbon-footprint' ... const emission = kilometer * transport.fossilFueledCar;

If you want to see how we use this module, check the NMF.earth app repo.

Source ℹ️

You can verify any number. A link can be found inside corresponding file.

Contribution 🙋

Any Contribution is welcome!

Please read this if you want to contribute.

Tests + Lint + typescript :

yarn test yarn lint yarn tsc yarn format

Workflow

To publish to npm, just create a new release.

©️ Open source - licence

Repository and contributions are under GNU General Public License v3.0

Keywords

carbon

FAQs

Package last updated on 13 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts