gatsby-plugin-easter-egg

1.0.0 • Public • Published

gatsby-plugin-easter-egg

💜🔌🐰🥚

A Gatsby plugin that easily adds a hidden key combination which reveals hidden fun[ctionality]

Installation

Install with npm:

npm install --save gatsby-plugin-easter-egg

Install with yarn:

yarn add gatsby-plugin-easter-egg

Configuration

After installing gatsby-plugin-easter-egg, add it to gatsby-config.js:

module.exports = {
  plugins: [
    // ...
    `gatsby-plugin-easter-egg`
  ]
};

Options

gatsby-plugin-easter-egg exposes a few options which can be used to customize and test the plugin.

Option Default Description
sequence up up down down left right left right b a enter Defaults to the Konami Code, can be set to anything. See documentation for more key capture information
debug false Displays console debug information, and exposes the secret function on the Window
module.exports = {
  plugins: [
    // ...
    {
      resolve: `gatsby-plugin-easter-egg`,
      options: {
        sequence: `a s d f`,
        debug: true
      }
    }
  ]
};

License

MIT

Package Sidebar

Install

npm i gatsby-plugin-easter-egg

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

30.9 kB

Total Files

9

Last publish

Collaborators

  • themikez