0.0.2 • Published 4 years ago

konami-key v0.0.2

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

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)!

0.0.2

4 years ago

0.0.1

4 years ago