hesoyam
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

🎮 Hesoyam Quality Assurance

The library provides an engine for entering cheat codes in your web applications. For example, this is how you can hide some functionality without resorting to feature toggles or inject an easter egg.

  • Framework agnostic.
  • Zero dependencies

How does it work?

Cheat codes are encoded into a special number so that they can be kept open source without fear of easy decryption. For example:

  • hesoyam — 117499400
  • panzer — 100663304

When the listener is activated, the library records all keystrokes and calls a callback as soon as the buffer contains the necessary code.

Installation

pnpm add hesoyam

Usage

import { createCheatsListener } from 'hesoyam'

const { start } = createCheatsListener({
  onCheat: (code) => {
    console.log('Got code', code)
  },
  cheats: {
    hesoyam: 117499400,
  }
})

start()

Readme

Keywords

Package Sidebar

Install

npm i hesoyam

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

16.3 kB

Total Files

31

Last publish

Collaborators

  • mishamyrt