🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

konamimojisplosion

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

konamimojisplosion

Connects konami-code-js to emojisplosion for a glorious easter egg.

0.5.2
latest
Source
npm
Version published
Weekly downloads
2.8K
470.99%
Maintainers
2
Weekly downloads
 
Created
Source

Konamimojisplosion

Code Style: Prettier TypeScript: Strict NPM version

⬆ ⬆ ⬇ ⬇ ⬅ ➡ ⬅ ➡ 🅱 🅰

🎉 ✨ 🎆

Hooks konami-code-js to trigger emojisplosion.

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

Check it out on Codecademy Docs!

Usage

Quick Mode

Plop this 👇 at the end of your <body>:

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

Alternately, you can import and use this as a standalone function, a React hook, or a React class component.

Standalone Function

import { initializeKonamimojisplosion } from "konamimojisplosion";

initializeKonamimojisplosion();

React Hook

import { useKonamimojisplosion } from "konamimojisplosion";

function MyComponent() {
  useKonamimojisplosion();

  return <main>Hello, world!</main>;
}

React Class Component

Tip: the class component just calls the hook internally.

import { Konamimojisplosion } from "konamimojisplosion";

class MyComponent {
  render() {
    return (
      <main>
        <Konamimojisplosion />
        Hello, world!
      </main>
    );
  }
}

Development

Requires:

  • Node.js >14
  • Yarn

After forking the repo from GitHub:

git clone https://github.com/<your-name-here>/konamimojisplosion
cd konamimojisplosion
yarn

Contribution Guidelines

We'd love to have you contribute! Check the issue tracker for issues labeled accepting prs to find bug fixes and feature requests the community can work on. If this is your first time working with this code, the good first issue label indicates good introductory issues.

Please note that this project is released with a Contributor Covenant. By participating in this project you agree to abide by its terms. See CODE_OF_CONDUCT.md.

Keywords

konami

FAQs

Package last updated on 21 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts