# spacex-nodejs

> Example TypeScript npm package tested and deployed with Codeship Basic

Latest version **1.0.0** (published 2019-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install spacex-nodejs
pnpm add spacex-nodejs
yarn add spacex-nodejs
bun add spacex-nodejs
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-08-19 |
| First published | 2019-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | 10.16.0 |
| Dependencies | 2 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Kyle Martin |
| Maintainers | js-kyle |
| Keywords | spacex, codeship, npm |

## Links

- npm: https://www.npmjs.com/package/spacex-nodejs
- Repository: https://github.com/js-kyle/spacex-nodejs
- Homepage: https://github.com/js-kyle/spacex-nodejs#readme
- Issues: https://github.com/js-kyle/spacex-nodejs/issues
- npm.io page: https://npm.io/package/spacex-nodejs

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.88.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.4

## Recent versions

- 1.0.0 (latest) — 2019-08-19
- 0.0.0 — 2019-08-19

## README

# spacex-nodejs ![Codeship Status for js-kyle/spacex-nodejs](https://app.codeship.com/projects/60009a60-a456-0137-c9f8-1e6144196fb0/status?branch=master) [![npm version](https://badge.fury.io/js/spacex-nodejs.svg)](https://badge.fury.io/js/spacex-nodejs)

This module is a Node.js wrapper for the [SpaceX API](https://github.com/r-spacex/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

```javascript
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.](https://documenter.getpostman.com/view/2025350/RWaEzAiG?version=latest)

---
_Source: https://npm.io/package/spacex-nodejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
