song-lyrics-api

1.1.0 • Public • Published

Lyrics API

A simple JavaScript lyrics API.

Installing

$ npm install lyrics-api

Usage

const Lyrics = require('lyrics-api');
const lyrics = new Lyrics();

getLyrics

lyrics.getLyrics('Hot N Cold')
    .then((response) => {
        return console.log(response);
    })
    .catch((error) => {
        return console.log(error);
    })

The method returns an array of objects. Each object is data of a song that API found. If API don't find lyrics, you will get an object with following error.

Info

Package Sidebar

Install

npm i song-lyrics-api

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

5.24 kB

Total Files

7

Last publish

Collaborators

  • s0ftik3