New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

spaceflightnewsapi-node

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spaceflightnewsapi-node

This package lets you easily consume content from the Spaceflight News API.

latest
Source
npmnpm
Version
1.4.0
Version published
Maintainers
1
Created
Source

Spaceflight News API NodeJS Package

The Spaceflight News API NodeJS package is an easy way to consume the content from the Spaceflight News API.

Installation

Use npm or yarn to install the package:

npm i spaceflightnewsapi-node

or

yarn add spaceflightnewsapi-node

Usage

const { latestNews, latestBlogs, latestReports } = require('spaceflightnewsapi-node')

latestNews(); // returns a Promise that resolves to the latest news
latestBlogs(); // returns a Promise that resolves to the latest blogs
latestReports(); // returns a Promise that resolves to the latest reports

All functions accept an object with query params as key/value pairs:

const { latestNews } = require('spaceflightnewsapi-node')

latestNews({ _limit: 5 }); // returns latest news

A list of all query parameters can be fount in the Spaceflight News API docs.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

FAQs

Package last updated on 29 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts