1.0.9 • Published 1 year ago

imagine-dragons.js v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

License

MIT

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago