drink-if-exists icon indicating copy to clipboard operation
drink-if-exists copied to clipboard

🍷 The NPM drinking game recreated and cli-ified with Deno

drink if exists

icon

The NPM drinking game recreated and cli-ified with Deno with Deno

Made with Deno Make a PR MIT Buy Me A Coffee

demo

To play the game, run the following command:

deno run --allow-net http://drink-if-exists.now.sh/mod.ts

How to play

Enter an english word:

  • Take a sip 🍷 if an NPM package under the name exists, or
  • Take a shot 🥃 if a Deno package under the name exists.
  • Write and maintain a package under the name if it doesn't exist.

🛠 Build setup

Install Deno, then clone or fork this repository. Run

deno run --allow-net mod.ts

The NPMS API was used to find NPM packages. Deno's third-party modules API is used to find Deno packages

Folder structure

The app is located in the src/ folder, with the entry point being mod.ts.

Credits

  1. Original idea from

    Drinking game for npm users:
    ➀ Think of a noun
    ➁ npm install <noun>
    ➂ If it installs - drink!\

    tweet from @sindresorhus on Sep 26, 2014

  2. Inspiration from npmdrinkinggame.party by @NikkitaFTW

  3. Inspiration from sipit by bnb

  4. This tweet

    ④ If it doesn't, create that module and forever be responsible for maintaining it. Drink.

    tweet from @clarler on Sep 26, 2014

♥️ Support

If you liked this project, consider supporting by

  • ⭐️ Starring the repository
  • 🎒 Checking out my other projects
  • ☕️ Buying me coffee

📜 License

MIT