@jlbubbles0920_yt/spacex-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @jlbubbles0920_yt/spacex-api

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

3.02 kB

Total Files

4

Last publish

Collaborators

  • jlbubbles0920_yt