
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
cheatcode-shooter
Advanced tools
a cheat code shooter with TypeScript, and also refer to it as 'konami code'
a cheat code shooter, and also refer to it as konami code
English | 简体中文(Chinese) | 日本語(Japanese)
pnpm add cheatcode-shooter
// btw, it was initially named cheat-shooter, but npm disallowed the use of `cheat`.
import { CheatShooter } from 'cheatcode-shooter';
const actions = {
'konami': () => {
// Your action for the Konami code
console.log('konami')
},
// Add more actions as needed
};
const cheatShooter = new CheatShooter(actions);
cheatShooter.on('command', (commandInfo: Output) => {
if (commandInfo) {
console.log(`Command detected: ${commandInfo.input}`);
} else {
console.log('Invalid command');
}
});
// Access the available commands
console.log('Available commands:', cheatShooter.commands);
// Destroy the cheat shooter when it's no longer needed
cheatShooter.destroy();
interface Output {
step: number;
input: string;
guesses: string[];
}
new CheatShooter(actions: Record<string, Action>): CheatShooter
Creates a new CheatShooter instance with the specified actions.
destroy(): void
Removes event listeners and cleans up resources when the CheatShooter is no longer needed.
on(event: EventType, callback: EventCallback): Function
Registers a callback function to be called when a command is detected. Returns a function to remove the listener.
commands: string[]
An array of available cheat commands.
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
a cheat code shooter with TypeScript, and also refer to it as 'konami code'
The npm package cheatcode-shooter receives a total of 0 weekly downloads. As such, cheatcode-shooter popularity was classified as not popular.
We found that cheatcode-shooter 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.