# nowcast-aqi

> Nowcast AQI calculator

Latest version **0.0.3** (published 2016-04-23) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install nowcast-aqi
pnpm add nowcast-aqi
yarn add nowcast-aqi
bun add nowcast-aqi
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-04-23 |
| First published | 2016-04-11 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Chris Hatch |
| Maintainers | chatch |
| Keywords | nowcast, aqi, epa, pm2.5, pm10, air, environment |

## Links

- npm: https://www.npmjs.com/package/nowcast-aqi
- Repository: https://github.com/chatch/nowcast-aqi
- Homepage: https://github.com/chatch/nowcast-aqi#readme
- Issues: https://github.com/chatch/nowcast-aqi/issues
- npm.io page: https://npm.io/package/nowcast-aqi

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

- 0.0.3 (latest) — 2016-04-23
- 0.0.2 — 2016-04-12
- 0.0.1 — 2016-04-11

## README

# nowcast-aqi
[![](https://img.shields.io/npm/v/nowcast-aqi.svg)](https://www.npmjs.com/package/nowcast-aqi)
[![Build Status](https://travis-ci.org/chatch/nowcast-aqi.svg?branch=master)](https://travis-ci.org/chatch/nowcast-aqi)

[Nowcast AQI](https://en.wikipedia.org/wiki/Nowcast_%28Air_Quality_Index%28) calculator

### Usage
```
let nowcast = require('nowcast-aqi')

// nowcast PM
let last12Hours = [13, 16, 10, 21, 74, 64, 53, 82, 90, 75, 80, 50]
nowcast.pm(last12Hours)  // '17.413919413919412'

// nowcast ozone
let last8Hours = [0.14, 0.16, 0.15, 0.14, 0.11, 0.12, 0.12, 0.11]
nowcast.ozone(last8Hours)  // '0.14145147795319638'

// nowcast PM Asian (see proposal at http://aqicn.org/faq/2015-03-15/air-quality-nowcast-a-beginners-guide/)
let last3Hours = [89, 77, 10]
nowcast.pmAsian(last3hours)  // '86.91493659521939'

// nowcast custom hours and weight factor
let last5Hours = [66, 50, 62, 100, 98]
nowcast.custom(last5hours)  // '64.58064516129032'
```

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