node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

airjs

air.js


The Barometric Function for determining air pressure & density by altitude, in Javascript.

Installation - NPM

npm install airjs

Installation - Browser-ready

<script src="http://wzrd.in/standalone/airjs@latest"></script>
<script>
airjs.pressure(...); //  etc.
</script>

Usage

var airjs = require('airjs');
 
// E.g. Air pressure (Pascals) @ 1km AMSL 
airjs.pressure(1000); // ⇨ 89874.57050221058 
 
// E.g. Air density (kg/m^3) @ 2km AMSL 
airjs.density(2000);  // ⇨ 1.0064902544633867 
 

Markdown generated from README_js.md by RunMD Logo