
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
npm install easter-egg --save
<script src="./node_modules/easter-egg/easter-egg.js" type="text/javascript"></script>
cheet('e a s t e r', function () { alert('Hidden easter Egg!'); });
cheet('↑ ↑ ↓ ↓ ←', function () {
alert('You found the easter egg!');
});
cheet('s e q u e n c e', {
next: function (str, key, num, seq) {
console.log('key pressed: ' + key);
console.log('progress: ' + num / seq.length);
console.log('seq: ' + seq.join(' '));
},
fail: function () {
console.log('sequence failed');
},
done: function () {
console.log('Hello Easter Egg!');
}
});
cheet('o n c e', function () {
console.log('This will only fire once.');
cheet.disable('o n c e');
});
var sequences = {
sequence: 'up down left right',
circle: 'left up right down'
};
cheet(sequences.sequence);
cheet(sequences.circle);
cheet.done(function (seq) {
if (seq === sequences.sequence) {
console.log('sequence!');
} else {
console.log('circle!');
}
});
cheet(sequence, done | {next,fail,done})Map a sequence of keypresses to a callback. This can be called multiple times.
sequence(String)A string representation of a sequence of key names.
Each keyname must be separated by a single space.
done(str, seq)(callback)A callback to execute each time the sequence is correctly pressed.
Arguments:
str- The string representation of the sequence that completed.seq- An array of key names representing the sequence that completed.
fail(str, seq)(callback)A callback to execute each time a sequence's progress is broken.
Arguments:
str- The string representation of the sequence that failed.seq- An array of key names representing the sequence that was pressed.
next(str, key, num, seq)(callback)A callback to execute each time a correct key in the sequence is pressed in order.
Arguments:
str- The string representation of the sequence that is in progress.key- The name of the key that was just pressed.num- A number representing the current progress of the sequence. (starts at 0)seq- An array of key names representing the sequence that is in progress.
cheet.done(callback)Set a global callback that executes whenever any mapped sequence is completed successfully.
callback(str, seq)(callback)A callback to execute each time any sequence is correctly pressed.
Arguments:
str- The string representation of the sequence that completed.seq- An array of key names representing the sequence that completed.
cheet.next(callback)Set a global callback that executes whenever any mapped sequence progresses.
callback(str, key, num, seq)(callback)A callback to execute each time a correct key in any sequence is pressed in order.
Arguments:
str- The string representation of the sequence that is in progress.key- The name of the key that was just pressed.num- A number representing the current progress of the sequence. (starts at 0)seq- An array of key names representing the sequence that is in progress.
cheet.fail(callback)Set a global callback that executes whenever any in-progress sequence is broken.
callback(str, seq)(callback)A callback to execute each time any sequence's progress is broken.
Arguments:
str- The string representation of the sequence that failed.seq- An array of key names representing the sequence that was pressed.
cheet.disable(sequence)Disable a previously-mapped sequence.
sequence(String)The same string you used to map the callback when using
cheet(seq, ...).
cheet.reset(sequence)Resets a sequence that may or may not be in progress.
This will not cause fail callbacks to fire, but will effectively
cancel the sequence.
sequence(String)The same string you used to map the callback when using
cheet(seq, ...).
NOTE: Key names are case-sensitive
left | L | ←up | U | ↑right | R | →down | D | ↓0-9 (main number keys)a-zbackspacetabenter | returnshift | ⇧control | ctrl | ⌃alt | option | ⌥command | ⌘pausecapslockescspacepageuppagedownendhomeinsertdeleteequal | =comma | ,minus | -period | .kp_0-kp_9kp_multiplykp_pluskp_minuskp_decimalkp_divideFAQs
Easily hide your easter eggs in the browser!
We found that easter-egg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.