Comparing version 0.9.3 to 1.0.0
{ | ||
"name": "airjs", | ||
"version": "1.0.0", | ||
"type": "module", | ||
"author": { | ||
@@ -8,3 +10,2 @@ "name": "Robert Kieffer", | ||
}, | ||
"dependencies": {}, | ||
"description": "The Barometric Function, in Javascript", | ||
@@ -16,3 +17,4 @@ "keywords": [ | ||
], | ||
"main": "air.js", | ||
"main": "./index.js", | ||
"module": "./index.js", | ||
"repository": { | ||
@@ -22,10 +24,10 @@ "url": "https://github.com/broofa/airjs", | ||
}, | ||
"version": "0.9.3", | ||
"devDependencies": { | ||
"runmd": "0.1.8" | ||
"@eslint/js": "8.47.0", | ||
"eslint": "8.47.0" | ||
}, | ||
"scripts": { | ||
"md": "runmd --watch --output=README.md README_js.md", | ||
"prepare": "runmd --output=README.md README_js.md" | ||
"prepare": "npm test", | ||
"test": "node --test build/test.js" | ||
} | ||
} |
@@ -0,5 +1,9 @@ | ||
<!-- | ||
-- This file is auto-generated from README_js.md. Changes should be made there. | ||
--> | ||
# air.js | ||
---- | ||
--- | ||
The [Barometric Function](http://en.wikipedia.org/wiki/Barometric_formula) for determining air pressure & density by altitude, in Javascript. | ||
@@ -11,23 +15,12 @@ | ||
## Installation - Browser-ready | ||
<script src="http://wzrd.in/standalone/airjs@latest"></script> | ||
<script> | ||
airjs.pressure(...); // etc. | ||
</script> | ||
## Usage | ||
```javascript | ||
var airjs = require('airjs'); | ||
import air from 'airjs'; | ||
// E.g. Air pressure (Pascals) @ 1km AMSL | ||
airjs.pressure(1000); // ⇨ 89874.57050221058 | ||
air(1000).pressure; // ⇨ 89874.57050221058 | ||
// E.g. Air density (kg/m^3) @ 2km AMSL | ||
airjs.density(2000); // ⇨ 1.0064902544633867 | ||
airjs(2000).density; // ⇨ 1.0064902544633867 | ||
``` | ||
---- | ||
Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd) |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
Yes
2819
2
4
51
26