Socket
Socket
Sign inDemoInstall

lyrics-grabber

Package Overview
Dependencies
51
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lyrics-grabber

A simple module to fetch lyrics of a song.


Version published
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Lyrics Grabber 🎵

npm Version Downloads made-with-javascript Npm package version License

The package now supports the commonJS!

Installation 📝

$ npm install lyrics-grabber

Example 📣

// CommonJS
const lyrics = require("lyrics-grabber");

//ECMAScript/ESM
import lyrics from "lyrics-grabber";

async function lyrics(query) {
  const data = await lyrics.getLyrics(query); // Make sure to use await or else it'll return undefined
  console.log(data); // logging the data.
}

async function traceInformation(query) {
  const informationalData = await lyrics.getTrackInformation(`${query}`);
  console.log(informationalData);
}
lyrics("FireFlies");
// Output lyrics
// {
//   lyrics: [
//     "[Verse 1]You would not believe your eyes if ten million firefliesLit up the world as I fell asleep'Cause they'd fill the open air and leave teardrops everywhereYou'd think me rude but I would just stand and stare[Chorus]I'd like to make myself believeThat planet Earth turns slowlyIt's hard to say that I'd rather stay awake when I'm asleep'Cause everything is never as it seems[Verse 2]'Cause I'd get a thousand hugs from ten thousand lightning bugsAs they tried to teach me how to danceA foxtrot above my head, a sock hop beneath my bedA disco ball is just hanging by a thread[Chorus]I'd like to make myself believeThat planet Earth turns slowlyIt's hard to say that I'd rather stay awake when I'm asleep'Cause everything is never as it seems (When I fall asleep)[Bridge]Leave my door open just a crack(Please take me away from here)'Cause I feel like such an insomniac(Please take me away from here)Why do I tire of counting sheep(Please take me away from here)When I'm far too tired to fall asleep?[Verse 3]To ten million fireflies, I'm weird 'cause I hate goodbyesI got misty eyes as they said farewell (They said farewell)But I'll know where several are if my dreams get real bizarre'Cause I saved a few and I keep them in a jar (Jar, jar, jar)[Chorus]I'd like to make myself believeThat planet Earth turns slowlyIt's hard to say that I'd rather stay awake when I'm asleep'Cause everything is never as it seems (When I fall asleep)I'd like to make myself believeThat planet Earth turns slowlyIt's hard to say that I'd rather stay awake when I'm asleep'Cause everything is never as it seems (When I fall asleep)[Outro]I'd like to make myself believeThat planet Earth turns slowlyIt's hard to say that I'd rather stay awake when I'm asleepBecause my dreams are bursting at the seams..."
//   ],
//   title: 'Fireflies',
//   author: 'Owl City'
// }

traceInformation("We don't talk anymore Charlie Puth");
// Output traceInformation
// {
//   title: 'We Don’t Talk Anymore',
//   author: 'Charlie Puth',
//   featuring: 'Selena Gomez',
//   producedBy: 'Charlie Puth',
//   releaseDate: 'May 24, 2016'
// }

Keywords

FAQs

Last updated on 29 Oct 2022

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