music-info

1.2.1 • Public • Published

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
}

Readme

Keywords

Package Sidebar

Install

npm i music-info

Weekly Downloads

19

Version

1.2.1

License

GPL-3.0

Unpacked Size

41.8 kB

Total Files

4

Last publish

Collaborators

  • redteadeveloper