0.4.9 • Published 8 months ago
@clxrity/nasa-api v0.4.9
NASA API
npm i @clxrity/nasa-apiyarn add @clxrity/nasa-apipnpm add @clxrity/nasa-apiRequirements
- 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);
}