2.1.0 • Published 3 years ago

lyrics-monarch-api v2.1.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
3 years ago

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);
    })