Socket
Socket
Sign inDemoInstall

flightplandb

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 4.0.0

built/flightplandb.js

59

package.json
{
"name": "flightplandb",
"version": "3.0.0",
"description": "An API wrapper for the website FlightPlanDatabase's API",
"main": "flightplandb.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/DanteFragapane/FlightPlanDB.js.git"
},
"keywords": [
"flightplan",
"flight",
"plan",
"api",
"wrapper",
"api wrapper"
],
"author": "Dante Fragapane",
"license": "ISC",
"bugs": {
"url": "https://github.com/DanteFragapane/FlightPlanDB.js/issues"
},
"homepage": "https://github.com/DanteFragapane/FlightPlanDB.js#readme"
"name": "flightplandb",
"version": "4.0.0",
"description": "An API wrapper for the website FlightPlanDatabase's API",
"main": "flightplandb.js",
"scripts": {
"test": "mocha --require ts-node/register tests/**/*.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/DanteFragapane/FlightPlanDB.js.git"
},
"keywords": [
"flightplan",
"flight",
"plan",
"api",
"wrapper",
"api wrapper"
],
"author": "Dante Fragapane",
"license": "ISC",
"bugs": {
"url": "https://github.com/DanteFragapane/FlightPlanDB.js/issues"
},
"homepage": "https://github.com/DanteFragapane/FlightPlanDB.js#readme",
"devDependencies": {
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.7",
"chai": "^4.2.0",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"ts-node": "^8.3.0",
"typescript": "^3.5.2"
}
}

@@ -6,4 +6,10 @@ # FlightPlanDB.js

## Use
To use the wrapper, simply import the FlightPlanDB module, and set a variable to a new instance of ``FlightPlanDB``. Call one of the attached methods, provide it the options it needs, and it will return the JSON object of the response.
To use the wrapper, simply import the FlightPlanDB module, and set a variable to a new instance of ``FlightPlanDB``. Call one of the attached methods, provide it the options it needs, and it will return the JSON object of the response. For example:
``const flightPlanDb = import('FlightPlanDB');
const db = new flightPlanDb({API KEY HERE});
db.getWeather('KCLE', function(result) {
console.log(result);
});``
## Methods

@@ -17,13 +23,2 @@ ``getFlightPlan(id, callback)``-- Gets the flight plan from the database with the corresponding ID<br>

``flightPlanFlightNumber(flightNumber, callback)``-- Retrieves a search of all flightplans with a given flight number<br>
``generateFlightPlan(fromIcao, toIcao, callback, {
useNat: true,
usePacot: true,
useAwylo: true,
useAwyhi: true,
cruiseAlt: 35000,
cruiseSpeed: 420,
ascentRate: 2500,
ascentSpeed: 250,
descentRate: 1500,
descentSpeed: 250
})``-- Generates a flight plan with the given parameters. All parameters in the object are optional, and defaults are shown above.
``generateFlightPlan(fromIcao, toIcao, callback, useNat: true, usePacot: true, useAwylo: true, useAwyhi: true, cruiseAlt: 35000, cruiseSpeed: 420, ascentRate: 2500, ascentSpeed: 250, descentRate: 1500, descentSpeed: 250)``-- Generates a flight plan with the given parameters. All parameters after the callback function are optional, and defaults are shown.
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc