azlyricsapi

1.2.0 • Public • Published

Gets lyrics from azlyrics.com

Installation:


npm install azlyricsapi --save

Usage:


Parameter 1 & 2 should be the song title and artist respectively, without any non-alphanumeric characters (I.E: Turn "Black & White" "In Flames" into "blackwhite" "inflames".

The callback will include:
  • HTTP response code
  • HTTP response message
  • Stylized song title
  • Stylized artist
  • The songs lyrics
  • Album name

Examples:


const getLyrics = require('azlyricsapi');
getLyrics('marchtotheshore', 'inflames', console.log)

Would return

{ rsp: { statusCode: 200, statusMessage: 'OK' },
  title: 'March To The Shore',
  album: 'A Sense Of Purpose (2008)',
  artist: 'In Flames',
  lyrics: 'I used to adore you\nThe lies made sense somehow\nGave myself away without a fight\nBut the betrayal claims its price\nAt first I was scared\nNot used to a murder\'s mind\nBut there was something beautiful\nSo powerful, so definite, so divine\nPushing the faith\nBuild out of rage\n\nFalling ideals\nBroken seals\nMarch to the shore\nYou are a killer!\nIs it something that\'s always been there?\nWas it always destined to leave its cage?\nI\'m glad we met though\nI love to release the rage\nBut everything has its end\nAnd I\'ve done my deed\nThe final bullet - always meant for me\nPushing the faith\nBuild out of rage\n\nBut everything has its end\nAnd I\'ve done my deed\nThe final bullet - always meant for me\n\n' }

const getLyrics = require('azlyricsapi');
getLyrics('matchtotheshore', 'Inflooms', console.log)

Would return

{
rsp: {
  statusCode: 404,
  statusMessage: 'Not Found'
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i azlyricsapi

Weekly Downloads

0

Version

1.2.0

License

ISC

Last publish

Collaborators

  • iliknachos