airjs
v1.0.0
Published
The Barometric Function, in Javascript
Downloads
9
Maintainers
Readme
air.js
The Barometric Function for determining air pressure & density by altitude, in Javascript.
Installation - NPM
npm install airjs
Usage
import air from 'airjs';
// E.g. Air pressure (Pascals) @ 1km AMSL
air(1000).pressure; // ⇨ 89874.57050221058
// E.g. Air density (kg/m^3) @ 2km AMSL
airjs(2000).density; // ⇨ 1.0064902544633867