lyrics-monarch-api

2.1.0 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i lyrics-monarch-api

    Weekly Downloads

    8

    Version

    2.1.0

    License

    AGPL-3.0

    Unpacked Size

    36.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • prajjwal-datir