Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

easter-eggs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easter-eggs

A simple script for adding the Konami Code easter egg to your site. Configurable to add your own patterns and callback functions in the case of match.

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by800%
Maintainers
1
Weekly downloads
 
Created
Source

easter-eggs

npm version

A simple script for adding the Konami Code easter egg to your site. Configurable to add your own patterns and callback functions in the case of match.

easter-eggs demo image

Quick start

1 Download and Install easter-eggs

2 Include dependences

2.1 easter-eggs.js or easter-eggs.min.js are under dist folder.

2.2 Include easter-eggs.js or easter-eggs.min.js, e.g.

<script src="../dist/easter-eggs.min.js"></script>

3 Use it

In your javascript code this way:

EasterEggs.show();

EasterEggs.addSequence(null,[51,50,49],function(){
    console.log("MATCH!!! 3,2,1");
})

4 License

easter-eggs.js is MIT licensed.

Keywords

FAQs

Package last updated on 06 Apr 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc