1.1.0 • Published 4 years ago

song-lyrics-api v1.1.0

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

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

1.1.0

4 years ago