Get the lyrics to your favorite songs (via LyricWikia API)
- node.js
$ npm install --save node-lyrics
# OR (CLI)
$ npm install --global node-lyrics
const lyrics = require('node-lyrics');
const albums = await lyrics.getAlbums('Local Natives');
/*
[
'Gorilla Manor',
'Hummingbird',
'Sunlit Youth',
'Violet Street'
]
*/
$ lyrics "james blake" retrograde
# > james blake - retrograde [Overgrown]
# > You're on your own,
# > In a world you've grown,
# > ...
- Supports Promises!
getTopSongs
was deprecated
Besides the methods provided by default, I've added 2 new methods:
- getAlbums
- parseLyrics
Fetches the artist albums. [Array]
ignore: none (default), 'Unreleased', 'B-Sides', 'Other Songs'. (string or array)
Gets the artist albums. [Object]
fmt (format): JSON (default), XML, HTML
ignore: none (default), 'Unreleased', 'B-Sides', 'Other Songs'. (string or array)
Gets the artist country, state and hometown info. [Object]
fmt (format): JSON (default), XML, HTML
Returns the song of the day. [Object]
fmt (format): JSON (default), XML, HTML
Returns the URL to the song's lyrics and the lyric's beginning. [Object]
fmt (format): JSON (default), XML, HTML
DISCLAIMER: This method uses web scraping to grab the song's lyrics.
Returns the lyrics for the song. [Object]
DEPRECATED
### getTopSongs(artist, options, callback)
MIT © Ricardo Matias