redteadeveloper / Music-Info

npm module for searching songs and albums.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

music-info

NPM NPM NPM NPM NPM

npm module for searching songs and albums.

Usage

Song search

let musicInfo = require("music-info");

musicInfo.searchSong({ title: "November Rain", artist: "Guns N Roses", album: "Use Your Illusion I" }, 1000).then(console.log);
  • 1000 is the size of the artwork. Default value is 600.
  • artist and album parameters are optional.
Click to see the returned object (promise)

{
  title: String,      
  artist: String,
  album: String,
  discNumber: Number,
  trackNumber: Number,
  explicit: Boolean,
  releaseDate: String,
  genre: String,
  lengthMilliSec: Number,
  artwork: String
}

Album search

let musicInfo = require("music-info");

musicInfo.searchAlbum({ name: "Appetite For Destruction", artist: "Guns N Roses" }, 1000).then(console.log);
  • 1000 is the size of the artwork. Default value is 600.
  • artist parameter is optional.
Click to see the returned object (promise)

{
  name: String,
  artist: String,
  trackCount: Number,
  explicit: Boolean,
  contentAdvisoryRating: String,
  releaseDate: String,
  genre: String,
  artwork: String
}

Lyrics search

let musicInfo = require("music-info");

musicInfo.searchLyrics({ title: "Since I Don't Have You", artist: "Guns N Roses" }).then(console.log);
  • artist parameter is optional.
Click to see the returned object (promise)

{
  url: String,
  lyrics: String
}

About

npm module for searching songs and albums.

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%