2.1.0 • Published 3 years ago
lyrics-monarch-api v2.1.0
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);
})