Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.11 KB

File metadata and controls

47 lines (34 loc) · 2.11 KB

@konami-emoji-blast/astro

Hooks up konami-code-js to trigger emoji-blast in Astro. 🚀

🤝 Code of Conduct: Kept 📝 License: MIT 📦 npm version 💪 TypeScript: Strict

⬆ ⬆ ⬇ ⬇ ⬅ ➡ ⬅ ➡ 🅱 🅰

Usage

First install the @konami-emoji-blast/astro and konami-emoji-blast packages as dependencies:

npm i @konami-emoji-blast/astro konami-emoji-blast

Then, apply this integration to your astro.config.* file using the integrations property:

import { konamiEmojiBlast } from "@konami-emoji-blast/astro";
import { defineConfig } from "astro/config";

export default defineConfig({
	// ...
	integrations: [konamiEmojiBlast()],
});

Then, pressing the Konami Code on your Astro site should trigger fireworks blasts of emoji on the page. Yay! 🎆

Development

@konami-emoji-blast/astro 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.