carbono2

1.0.0 • Public • Published

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'
    }
  }
*/

Package Sidebar

Install

npm i carbono2

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • liedman