1.0.3 • Published 2 years ago

@jlbubbles0920_yt/spacex-api v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

SpaceX api

A JavaScript / TypeScript wrapper for fetching data from SpaceX api.

Installation

npm install @jlbubbles0920_yt/spacex-api

Usage

See available methods

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