1.0.0 • Published 1 year ago
imdragons.js v1.0.0
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 of "Imagine Dragons". Making a simple way to index though the mass amounts of Data the API has to offer.
Prerequisites
- NodeJS
- Basic Javascipt Knowledge
Usage
Installing the Library within a NodeJS enviorment
# Run this to install imagine-dragons.js locally to your repository.
$ npm install imagine-dragons.js --save
# Run this instead to install imagine-dragons.js globally so you can use it anywhere.
$ npm install imagine-dragons.js -g
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 throught it and we can find the Band Details.
// Import Imgaine-Dragons.js
import { Indexer } from "imagine-dragons.js"
// Create a New Indexer of Band Data
const indexer = new Indexer()
// Shows all Band JSON Infomation
console.log(indexer.details)
Expected Output should be as follow
"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
Credits
- RobbiDev - Lead Programmer
- Unnecessary Libraries - Organizer
License
MIT
1.0.0
1 year ago