# keyboardevents-areequal

> Check if two keyboardevents objects are equals.

Latest version **0.2.2** (published 2017-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install keyboardevents-areequal
pnpm add keyboardevents-areequal
yarn add keyboardevents-areequal
bun add keyboardevents-areequal
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2017-08-07 |
| First published | 2017-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrea |
| Maintainers | parroit |

## Links

- npm: https://www.npmjs.com/package/keyboardevents-areequal
- Repository: https://github.com/parro-it/keyboardevents-areequal
- Homepage: https://github.com/parro-it/keyboardevents-areequal#readme
- Issues: https://github.com/parro-it/keyboardevents-areequal/issues
- npm.io page: https://npm.io/package/keyboardevents-areequal

## Recent versions

- 0.2.2 (latest) — 2017-08-07
- 0.2.1 — 2017-07-27
- 0.2.0 — 2017-07-05
- 0.1.0 — 2017-06-29
- 0.0.3 — 2017-06-29
- 0.0.1 — 2017-06-29

## README

# keyboardevents-areequal

[![Travis Build Status](https://img.shields.io/travis/parro-it/keyboardevents-areequal/master.svg)](http://travis-ci.org/parro-it/keyboardevents-areequal)
[![NPM downloads](https://img.shields.io/npm/dt/keyboardevents-areequal.svg)](https://npmjs.org/package/keyboardevents-areequal)

> Check if two keyboardevents objects are equals.

This module is part of an ongoing effort to make [electron-localshortcut](https://github.com/parro-it/electron-localshortcut) less error prone, using keyboard DOM listener instead of 'globalShortcut' method to trigger shortcuts handlers.

## Usage

This example check if various KeyboardEvent objects represents the same event:

```js
const areEqual = require('keyboardevents-areequal');

console.log(areEqual({ctrlKey: true, code: 'f'}, {ctrlKey: true, code: 'f'}));
// true

console.log(areEqual({code: 'f'}, {ctrlKey: true, code: 'f'}));
// false
```


## API

## Install

With [npm](https://npmjs.org/) installed, run

```bash
npm install --save keyboardevents-areequal
```

## See Also

- [`noffle/common-readme`](https://github.com/noffle/common-readme)

## License

MIT

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