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

0.1.6 • Public • Published

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!')
})

Readme

Keywords

Package Sidebar

Install

npm i ts-morse

Weekly Downloads

271

Version

0.1.6

License

UNLICENSED

Unpacked Size

2.34 kB

Total Files

4

Last publish

Collaborators

  • r3ip-7c1