# carbon2

> Calculate carbon dioxide (CO²) emissions

Latest version **1.0.0** (published 2017-11-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install carbon2
pnpm add carbon2
yarn add carbon2
bun add carbon2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-11-11 |
| First published | 2017-11-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Per Liedman |
| Maintainers | liedman |
| Keywords | co2, carbon, dioxide, environment |

## Links

- npm: https://www.npmjs.com/package/carbon2
- npm.io page: https://npm.io/package/carbon2

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-11-11

## 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:

```bash
npm i co2
```

Calculate:

```js
const co2 = require('co2')

const e = co2.fromTransport(400)

/* =>

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

---
_Source: https://npm.io/package/carbon2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
