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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.0
    8
  • 2.0.0
    0
  • 1.0.1
    0
  • 1.0.0
    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