npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

packt-sardines

v1.0.0

Published

I'm a reasonable man, get off my case.

Downloads

8

Readme

Packt Sardines

Simple module for Radiohead lyrics.

Functions

lyrics.lorem

The lorem(length) function returns a radiohead lorem ipsum sample.

The length parameter is a number for the length of lorem ipsum. Each number indicates the amount of sentences (lyrics) to return.

const packt = require("packt-sardines");

packt.lorem(10);

// Returns: "We’re not scaremongering. This is really happening. One day, I am going to grow wings, a chemical reaction, hysterical and useless. Just cause you feel it, doesn't mean it's there. There's always a siren singing you to shipwreck. It's gonna be a glorious day, I feel my luck could change."

lyrics.random

The random() function returns a random radiohead lyric.

const packt = require("packt-sardines");

packt.random();

// Returns: Because I know today has been the most perfect day I've ever seen.

lyrics.getAlbumLyrics

The getAlbumLyrics(album_id) function the lyrics for the album provided by the album_id parameter.

const packt = require("packt-sardines");

packt.getAlbumLyrics(5);

// Returns: [ { songs: [...], name: 'amnesiac', id: 5 } ]

lyrics.getSongLyrics

The getSongLyrics(song_id) function the lyrics for the song provided by the song_id parameter.

const packt = require("packt-sardines");

packt.getSongLyrics(52);

// Returns: [ { track: 6, lyrics: [...], title: 'Knives Out' } ]

IDs

Album IDs

| ID | Album | | --- | ------------------ | | 1 | Pablo Honey | | 2 | The Bends | | 3 | OK Computer | | 4 | Kid A | | 5 | Amnesiac | | 6 | Hail to the Thief | | 7 | In Rainbows | | 8 | The King of Limbs | | 9 | A Moon Shaped Pool | | 101 | In Rainbows Disk 2 |

Song IDs

Song IDs are based on their track listing order. A few key song IDs are listed below:

| ID | Song | Details | | --- | ----------------------------- | ----------------------------------- | | 1 | You | First Song + Track 1 of Pablo Honey | | 13 | Planet Telex | Track 1 of The Bends | | 25 | Airbag | Track 1 of OK Computer | | 37 | Everything in Its Right Place | Track 1 of Kid A | | 48 | Pyramid Song | Track 1 of Amnesiac | | 58 | 2 + 2 = 5. (The Lukewarm) | Track 1 of Hail to the Thief | | 72 | 15 Step | Track 1 of In Rainbows | | 82 | MK 1 | Track 1 of In Rainbows Disk 2 | | 91 | Morning Mr Magpie | Track 1 of The King of Limbs | | 98 | Burn the Witch | Track 1 of A Moon Shaped Pool | | 108 | True Love Waits | Last Song |