Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdm79/tap-quotes-npm-pkg
This NPM package delivers random quotes and lyrics from the movie This is Spinal Tap
https://github.com/jdm79/tap-quotes-npm-pkg
is lyrics-generator quotes random-quote-generator spinal tap this this-is-spinal-tap
Last synced: about 1 month ago
JSON representation
This NPM package delivers random quotes and lyrics from the movie This is Spinal Tap
- Host: GitHub
- URL: https://github.com/jdm79/tap-quotes-npm-pkg
- Owner: jdm79
- Created: 2023-05-18T13:21:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-13T22:10:45.000Z (9 months ago)
- Last Synced: 2024-10-29T00:49:03.619Z (about 2 months ago)
- Topics: is, lyrics-generator, quotes, random-quote-generator, spinal, tap, this, this-is-spinal-tap
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/tap-quotes-npm-pkg
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![npm](https://img.shields.io/npm/v/tap-quotes-npm-pkg)
![npm](https://img.shields.io/npm/dm/tap-quotes-npm-pkg)
![npm](https://img.shields.io/npm/l/tap-quotes-npm-pkg)# tap-quotes-npm-pkg
This function will return a random quote or lyric from an array of over 11 (570 to be precise) strings.
WARNING: Some of these quotes and lyrics contain rather rude (NSFW) words. They used to be tweeted every hour on the hour on [this Twitter bot](https://twitter.com/QuotesTap), until Alan Musk cut off my access to the Twitter API.The array contains back tick multi-line strings - a different line for each person speaking (see example below).
## How to use this package
```console
npm i tap-quotes-npm-pkg
``````js
const { randomTapQuote } = require("tap-quotes-npm-pkg");randomTapQuote();
// MARTY: If you were to have something written as your epitaph...
// DAVID: “Here lies David St. Hubbins...and why not?”
// MARTY: You feel that sums up your...your life?
// DAVID: No, it‘s the first thing I could think of.
// MARTY: Oh, I see...
```