1.0.0 • Published 6 years ago
spacex-js v1.0.0
spacex-js
SpaceX-API JavaScript Wrapper
Install
npm install --save spacex-js
Usage
Note: spacex-js depends on fetch()
being defined globally.
- If you are using this in electron, it should work without any configuration.
If you are using this in Node.js, you will need to use
node-fetch
.Example:
global.fetch = require('node-fetch') const spacex = require('spacex-js')