npm i @clxrity/nasa-api
yarn add @clxrity/nasa-api
pnpm add @clxrity/nasa-api
- Latest version of Node installed
- A NASA API key
See the Documenation for more information and a full list of available APIs.
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);
}