Skip to content

clxrityy/nasa-api

Repository files navigation

NASA API

view on npm MIT license Node.js CI

npm i @clxrity/nasa-api
yarn add @clxrity/nasa-api
pnpm add @clxrity/nasa-api

Requirements

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);
}