1.0.0 • Published 6 years ago

carbon2 v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

CO²

A carbon dioxide emission calculator for JavaScript.

Currently supports calculating emissions for different modes of transport, like air, car, train, etc.

Note, this is more "in progress" than you average node module, at the moment, so pretty limited functionality

Using

Install:

npm i co2

Calculate:

const co2 = require('co2')

const e = co2.fromTransport(400)

/* =>

  {
    air: {
      emissions: 76430,
      passengerClass: 'average',
      distanceClass: 'domestic'
    }
  }
*/