ts-morse
v0.2.1
Published
Detect SOS morse code with mouse clicks
Downloads
15
Readme
ts-morse
Detect when an HTML Element is clicked by SOS morse code (... --- ...)
detectSos: (elm: HTMLElement, callback: () => void) => void;
Example
import { detectSos } from 'ts-morse';
detectSos(document.body, () => {
console.log('SOS detected!')
})