konami-emoji-blast
TypeScript icon, indicating that this package has built-in type declarations

0.5.3Β β€’Β PublicΒ β€’Β Published

konami-emoji-blast

Hooks up konami-code-js to trigger emoji-blast. πŸŽ†

🀝 Code of Conduct: Kept πŸ“ License: MIT πŸ“¦ npm version πŸ’ͺ TypeScript: Strict

⬆ ⬆ ⬇ ⬇ β¬… ➑ β¬… ➑ πŸ…± πŸ…°

What?

If a user types in the Konami Code on their keyboard or taps it on their mobile phone, emoji blasts will start firing on the page. Triggering the Konami Code again will stop the emoji blasts.

Check it out on Codecademy Docs!

Usage

Direct HTML Quick Start

Plop this πŸ‘‡ at the end of your <body>:

<script async src="https://unpkg.com/konamimojisplosion/dist/now.js"></script>

That ☝ loads konami-emoji-blast soon after your page loads to set up the Konami Code with no configuration.

πŸ‘Œ.

You might want a little more fine-grained control over when the connection is created. To create a global initializeKonamiEmojiBlast function:

<script src="https://unpkg.com/emoji-blast/dist/global.js"></script>
<script>
	initializeKonamiEmojiBlast();
</script>

Direct Node.js Usage

First install the konami-emoji-blast package as a dependency:

npm i konami-emoji-blast

You can then import it in your code to access its initializeKonamiEmojiBlast function:

import { initializeKonamiEmojiBlast } from "konami-emoji-blast";

initializeKonamiEmojiBlast();

If you're using ESM or any modern JavaScript bundler or framework, such as ESBuild, Vite, or Webpack, this should just work. ✨

Frameworks

konami-emoji-blast can also be used via integrations for popular frontend frameworks. See:

Development

konami-emoji-blast is managed as part of the emoji-blast monorepo. See the monorepo's development docs first, then ./.github/DEVELOPMENT.md.

πŸ’™ This package was templated with create-typescript-app.

Package Sidebar

Install

npm i konami-emoji-blast

Weekly Downloads

3

Version

0.5.3

License

MIT

Unpacked Size

78.5 kB

Total Files

31

Last publish

Collaborators

  • joshuakgoldberg