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 |