# browser-shortcut

> Browser Shortcut Binding Helper！

Latest version **0.1.0** (published 2023-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install browser-shortcut
pnpm add browser-shortcut
yarn add browser-shortcut
bun add browser-shortcut
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-03-17 |
| First published | 2023-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | a10n2 |
| Maintainers | a10n2 |

## Links

- npm: https://www.npmjs.com/package/browser-shortcut
- npm.io page: https://npm.io/package/browser-shortcut

## Recent versions

- 0.1.0 (latest) — 2023-03-17
- 0.0.1 — 2023-03-14

## README

Browser Shortcut Binding Helper！

## Usage

```js
import ShortCut from 'browser-shortcut'
const sc = new ShortCut()

// register command
sc.register('alt + 1', () => console.log('alt+1'))
sc.register('alt+2', () => console.log('alt+2'))

// unmount command
sc.unMount('alt+1')
```

## warn

Avoid conflicts with your browser's own keyboard shortcuts, which invalidate registered keyboard shortcuts

---
_Source: https://npm.io/package/browser-shortcut · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
