Skip to content

A NodeJS Library that Uses the ImDragonsAPI from Unnecessary Libraries to allow easier access to the API.

License

Notifications You must be signed in to change notification settings

RobbiDev/ImDragons.JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo logo

GitHub NPM package state

AboutPrerequisitesUsageLinksCompatible WithCreditsLicense

👋 About

Imagine-dragons.js is a NodeJS library that utilizes the Unnecessary Libraries ImDragonsAPI. Making it easier for Developers to instantly find any information regarding the band "Imagine Dragons". Making a simple way to index though the mass amounts of Data the API has to offer.

⚙️ Prerequisites

🚀 Usage

Installing the Library within a NodeJS enviorment

# install imdragons.js
$ npm install imdragons.js 

This example is Creating a new Indexer class, thats sends a GET/request to the ImDragonsAPI looking for the "band" Collection. Once we Recieve the collection we can index through it and we can find the Band Details.

// Import Imgaine-Dragons.js
import { Collection } from "../lib/index.js"

// Calling a Collection indexer to search for band info
const info = await Collection("info")

// Shows all Band JSON Infomation 
console.log(info)

Expected Output should be as follows

  "details": {
        "origin": "Las Vegas, Nevada, United States",
        "years active": "2008-present",
        "genres": [
            "Alternative rock",
            "Indie rock",
            "Electronic rock"
        ],
        "labels": [
            "Interscope Records",
            "KIDinaKORNER"
        ],
        "members": [
            "Daniel Samardžić",
            "Dan Reynolds",
            "Ben McKee",
            "Wayne Sermon",
            "Daniel Platzman"
        ]
    }

🔗 Links

🧩 Compatible With

📄 License

MIT

About

A NodeJS Library that Uses the ImDragonsAPI from Unnecessary Libraries to allow easier access to the API.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks