A open source JSON Databse for all types of information regarding the band of imagine dragons
npm install imagine-dragons.js
About •
Prerequisites •
Usage •
Links •
Compatible With •
Credits •
License
bash
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`.
`javascript
// 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
`json
"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"
]
}
``