A simple typescript / javascript module to process and act on the konami code.
Written in typescript so accurate typings are included out of the box!
npm i --save @antisoftwareclub/cheat-managerimport { CheatManager } from "@antisoftwareclub/cheat-manager";
CheatManager.shared.addActivator(() => {
console.log("activated!");
});const CheatManager = require("@antisoftwareclub/cheat-manager");
CheatManager.shared.addActivator(() => {
console.log("activated!");
});We use pnpm so you'll need to make sure that's installed.
pnpm i
pnpm run build