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

0.0.2 • Public • Published

KonamiKey

This library was inspired by the useKonamiCode hook.

Installation

npm install konami-key

Usage

Simply import the module and you're done:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { KonamiKeyModule } from 'konami-key';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    KonamiKeyModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Trigger the Animation

Open your page and fire the Konami Code (↑ ↑ ↓ ↓ ← → ← → B A)!

Readme

Keywords

none

Package Sidebar

Install

npm i konami-key

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

78.7 kB

Total Files

20

Last publish

Collaborators

  • saimon24