flightplandb
Advanced tools
Comparing version 3.0.0 to 4.0.0
{ | ||
"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. |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
15688
9
466
0
7
22
1