Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

airjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airjs - npm Package Compare versions

Comparing version 0.9.3 to 1.0.0

index.d.ts

14

package.json
{
"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 &amp; 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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc