Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

spacex-nodejs

js-kyle11MIT1.0.0TypeScript support: included

Example TypeScript npm package tested and deployed with Codeship Basic

spacex, codeship, npm

readme

spacex-nodejs Codeship Status for js-kyle/spacex-nodejs npm version

This module is a Node.js wrapper for the SpaceX API. This module is purely to demonstrate an example npm module workflow using Codeship Basic as the tooling.

Installation

$ npm install

Test

$ npm run test

Usage

const spacex = require('spacex-node.js');

(async () => {
  await spacex.nextLaunch();
  await spacex.latestLaunch();
})();

API

spacex.nextLaunch()

Returns a Promise with data from the next spacex launch

spacex.latestLaunch()

Returns a Promise with data from the latest spacex launch

SpaceX API Reference can be found here.