music-info
v1.2.1
Published
npm module for searching songs and albums.
Downloads
90
Readme
music-info
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
andalbum
parameters are optional.
{
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.
{
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.
{
url: String,
lyrics: String
}