Skip to content

officialpiyush/lyriks.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

NPM :

npm install lyriks.js

Yarn :

yarn add lyriks.js

Example usage

const { LyriksClient } = require("lyriks.js")

const lyriksClient = new LyriksClient()

// Promise based
lyriksClient.getLyrics("dynamite").then(lyrik => {
    if(!lyrik) throw "No data found"
    // You can access the data using the following functions
    const author = lyrik.getAuthor()
    const title = lyrik.getAuthor()
    const source = lyrik.getSource()
    const search = lyrik.getSearch()
    const url = lyrik.getURL()
    const lyrics = lyrik.getContent() // or getLyrics() or getLyriks() also works :p

    // Do stuff with the above data
})

Contributors

👤 Piyush