song-lyrics-api
v1.1.0
Published
A Lyrics API. Provides you lyrics of a song.
Downloads
34
Maintainers
Readme
Lyrics API
A simple JavaScript lyrics API.
Installing
$ npm install lyrics-api
Usage
const Lyrics = require('lyrics-api');
const lyrics = new Lyrics();
getLyrics
lyrics.getLyrics('Hot N Cold')
.then((response) => {
return console.log(response);
})
.catch((error) => {
return console.log(error);
})
The method returns an array of objects. Each object is data of a song that API found. If API don't find lyrics, you will get an object with following error.
Info
- Large thanks to lyrics.ovh and deezer.com.
- Author of the API s0ftik3.