spacex-api
v1.0.2
Published
A JavaScript / TypeScript wrapper for fetching data from SpaceX api
Downloads
88
Readme
SpaceX api
A JavaScript / TypeScript wrapper for fetching data from SpaceX api.
Installation
npm install spacex-api
Usage
TypeScript
import { SpaceX } from 'spacex-api';
SpaceX
.getLatestLaunch()
.then(launch => alert(launch.mission_name))
JavaScript
var SpaceX = require('spacex-api').SpaceX;
SpaceX
.getLatestLaunch()
.then(launch => alert(launch.mission_name))
Limitations
- Lib is using Fetch API, so Internet Explorer is not supported.
Thanks for
- Thomas Smyth for creating SpaceX-API-Wrapper
- Timmy Kokke for creating json2ts