Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clxrityy/nasa-api
A NASA API wrapper for Node.js
https://github.com/clxrityy/nasa-api
earth javascript nasa nasa-api nasa-apod nasa-data near-earth-objects node npm npm-package pnpm typescript
Last synced: 2 days ago
JSON representation
A NASA API wrapper for Node.js
- Host: GitHub
- URL: https://github.com/clxrityy/nasa-api
- Owner: clxrityy
- License: mit
- Created: 2025-01-04T20:08:07.000Z (2 days ago)
- Default Branch: master
- Last Pushed: 2025-01-04T20:29:12.000Z (2 days ago)
- Last Synced: 2025-01-04T21:26:18.827Z (2 days ago)
- Topics: earth, javascript, nasa, nasa-api, nasa-apod, nasa-data, near-earth-objects, node, npm, npm-package, pnpm, typescript
- Language: TypeScript
- Homepage: https://github.com/clxrityy/nasa-api/blob/master/DOCS.md
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NASA API
[![view on npm](https://badgen.net/npm/v/@clxrity/nasa-api)](https://www.npmjs.org/package/@clxrity/nasa-api)
[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/clxrityy/nasa-api/blob/main/LICENSE)
[![Node.js CI](https://github.com/clxrityy/nasa-api/actions/workflows/main.yml/badge.svg)](https://github.com/clxrityy/nasa-api/actions/workflows/main.yml)- [api.nasa.gov](https://api.nasa.gov)
- [Documenation](https://github.com/clxrityy/nasa-api/blob/master/DOCS.md)```zsh
npm i @clxrity/nasa-api
```
```zsh
yarn add @clxrity/nasa-api
```
```zsh
pnpm add @clxrity/nasa-api
```## Requirements
- Latest version of [Node](https://nodejs.org) installed
- A [NASA API key](https://api.nasa.gov/)> See the [Documenation](https://github.com/clxrityy/nasa-api/blob/master/DOCS.md) for more information and a full list of available APIs.
---
```ts
import NASA_API from "@clxrity/nasa-api"const nasa = new NASA_API(process.env.NASA_API_KEY);
async function apod() {
const {
url,
title,
// ...
} = await nasa.getApod(); // Astronomy Picture of the Day
console.log(url, title);
}
```