Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including altitude-pressure-converter with all npm packages installed. Try it out:

var AltConverter = require('altitude-pressure-converter'); var config = { temp: 59.9, altitude: 1000, // required for altitudeToPressure() pressure: 97722, pressureAtAltitude: 97716.57, // required for pressureToAltitude() units: { temp: 'F', altitude: 'ft', pressure: 'Pa' } }; console.log(AltConverter.altitudeToPressure(config)); // returns 97722.72887817245 Pascals console.log(AltConverter.pressureToAltitude(config)); // returns about 1000 feet

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

altitude-pressure-converter v1.3.0

Convert altitude to pressure to altitude

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free