lyrics-searcher-musixmatch
v1.0.2
Published
Fork of the NPM package songlyrics (https://www.npmjs.com/package/songlyrics)
Downloads
5
Readme
lyrics-searcher-musixmatch
Fork of the NPM package songlyrics (https://www.npmjs.com/package/songlyrics)
Getting started
npm install https://github.com/Boxy-Boy-Bot/lyrics-searcher-musixmatch.git --save
How to Use
const lyricssearchermusixmatch = require('lyrics-searcher-musixmatch').default
lyricssearchermusixmatch('Never Gonna Give You Up')
.then((lyrics) => console.log(lyrics))
.catch(console.warn)
// {
// lyrics: 'We're no strangers to love....',
// source: {
// name: 'Musixmatch',
// url: 'https://www.musixmatch.com',
// link: 'https://www.musixmatch.com/lyrics/Rick-Astley/Never-Gonna-Give-Up'
// }
// }
// Get song name
lyricssearchermusixmatch('Never Gonna Give You Up')
.then(lyrics => console.log(lyrics.info.track.name)) //logs the song name in the console
.catch(console.warn)
// Get artist name
lyricssearchermusixmatch('Never Gonna Give You Up')
.then(lyrics => console.log(lyrics.info.track.artist.name)) //logs the artist name in the console
.catch(console.warn)