imdragonsjs-testbuild
v1.0.1
Published
A open source JSON Databse for all types of information regarding the band of imagine dragons
Downloads
3
Readme
About
Imagine-dragons.js is a NodeJS library that utilizes the Unnecessary Libraries ImDragonAPI. 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. Along with all that data, theres always more being added. Like Whenever new Songs or albums are released. They are added within Mins of release. Keeping all information dynamically updated across all your projects.
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 a simple Indexer function of getBandJSON()
. that makes a simple API GET/request to https://api.unnecessarylibraries.com
.
// Requires the imagine-dragons.js NPM Package
const imaginejs = require("imagine-dragons.js")
// Calling a Indexer and Using the Function "getBandJSON()""
imaginejs.indexer.getBandJSON()
.then((data) => {
// Do something with the data here (Ex: console.log(data.details))
console.log(data.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