@jlbubbles0920_yt/spacex-api
v1.0.3
Published
A JavaScript / TypeScript wrapper for fetching data from SpaceX api
Downloads
4
Readme
SpaceX api
A JavaScript / TypeScript wrapper for fetching data from SpaceX api.
Installation
npm install @jlbubbles0920_yt/spacex-api
Usage
TypeScript
import { SpaceX } from '@jlbubbles0920_yt/spacex-api';
SpaceX
.getLatestLaunch()
.then(launch => alert(launch.mission_name))
JavaScript
var SpaceX = require('@jlbubbles0920_yt/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
- Jose Moran Urena for revisioning the branch