Neurotoxin Powered Marketing
    Have ideas to improve npm?Join in the discussion! »

    genius-lyrics
    TypeScript icon, indicating that this package has built-in type declarations

    4.2.7 • Public • Published

    Genius Lyrics 🎵

    Node.js CI FOSSA Status Documentation

    🤔 Whats is this?

    Just a simple lyrics fetcher that uses Genius. This also has official API implementations.

    💻 Installation

    npm install genius-lyrics
    

    ⚙️ Usage

    const Genius = require("genius-lyrics");
    const Client = new Genius.Client("top-secret-optional-key");

    📎 Links

    ✏️ Examples

    Requiring

    JavaScript

    const Genius = require("genius-lyrics");
    const Client = new Genius.Client("top-secret-optional-key"); // Scrapes if no key is provided

    TypeScript

    import Genius from "genius-lyrics";
    const Client = new Genius.Client("top-secret-optional-key"); // Scrapes if no key is provided

    Fetching a Song and Lyrics

    const searches = await Client.songs.search("faded");
    
    // Pick first one
    const firstSong = searches[0];
    console.log("About the Song:\n", firstSong, "\n");
    
    // Ok lets get the lyrics
    const lyrics = await firstSong.lyrics();
    console.log("Lyrics of the Song:\n", lyrics, "\n");

    Fetching an Artist

    const artist = await Client.artists.get(456537);
    console.log("About the Artist:\n", artist, "\n");

    Install

    npm i genius-lyrics

    DownloadsWeekly Downloads

    1,477

    Version

    4.2.7

    License

    MIT

    Unpacked Size

    36.5 kB

    Total Files

    20

    Last publish

    Collaborators

    • avatar