Nana Plays Minesweeper

    aqi-us

    0.3.0 • Public • Published

    aqi-us

    Air Quality Index (AQI) calculation module according to USEPA AQI breakpoints.

    Build Status

    Installation

    npm install aqi-us
    

    Usage

    var aqi = require('aqi-us');
    
    // Get AQI from concentration
    var co_aqi = aqi.co(co_in_ppm);
    var no2_aqi = aqi.no2(no2_in_ppb);
    var o3_1hr_aqi = aqi.o3_1hr(o3_1hr_in_ppb);
    var o3_8hr_aqi = aqi.o3_8hr(o3_8hr_in_ppb);
    var pm10_aqi = aqi.pm10(pm10_in_ug_m3);
    var pm25_aqi = aqi.pm25(pm25_in_ug_m3);
    var so2_aqi = aqi.so2(so2_in_ppb);
    
    // Get description from AQI
    var co_label = aqi.aqi_label(co_aqi);
    
    // Get HEX color from AQI
    var co_color = aqi.aqi_color(co_aqi);

    Keywords

    Install

    npm i aqi-us

    DownloadsWeekly Downloads

    3

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    11.7 kB

    Total Files

    8

    Last publish

    Collaborators

    • rianol