1.0.2 • Published 1 year ago

spacex-api v1.0.2

Weekly downloads
7
License
ISC
Repository
github
Last release
1 year ago

SpaceX api

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

Installation

npm install spacex-api

Usage

See available methods

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

1.0.2

1 year ago

1.0.1

5 years ago

1.0.0

5 years ago