Socket
Socket
Sign inDemoInstall

song-lyrics-api

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    song-lyrics-api

A Lyrics API. Provides you lyrics of a song.


Version published
Weekly downloads
5
decreased by-28.57%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

  • Large thanks to lyrics.ovh and deezer.com.
  • Author of the API s0ftik3.

Keywords

FAQs

Last updated on 14 Aug 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc