carbon2
v1.0.0
Published
Calculate carbon dioxide (CO²) emissions
Downloads
4
Readme
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'
}
}
*/