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

0.2.1 • 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

21

Version

0.2.1

License

UNLICENSED

Unpacked Size

2.76 kB

Total Files

4

Last publish

Collaborators

  • r3ip-7c1