lyrics-monarch-api
v2.1.0
Published
Fetches Lyrics Of a Song using Get Parameters.
Downloads
32
Maintainers
Readme
lyrics-monarch-api
Fetches lyrics of a song using matching terms.
Methods
getLyrics(term)
For Javascript:
const Lyrics = require('lyrics-monarch-api');
const lyrics = new Lyrics();
/**
* Example of the method getLyrics
*/
lyrics.getLyrics('Snap back to reality')
.then((response) => {
return console.log(response);
})
.catch((error) => {
return console.log(error);
})
For Typescript
// @ts-ignore
import Lyrics from 'lyrics-monarch-api';
const lyrics = new Lyrics();
/**
* Example of the method getLyrics
*/
lyrics.getLyrics('Snap back to reality')
.then((response) => {
return console.log(response);
})
.catch((error) => {
return console.log(error);
})