# jquery-mouse-exit

> Triggers 'mouseexit' event when mouse focus has completely left the element. This type of behaviour is especially desirable for non-modal overlays.

Latest version **1.0.1** (published 2017-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install jquery-mouse-exit
pnpm add jquery-mouse-exit
yarn add jquery-mouse-exit
bun add jquery-mouse-exit
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-10-18 |
| First published | 2016-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/jquery-mouse-exit) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ian McBurnie |
| Maintainers | ianmcburnie |
| Keywords | jquery-plugin, ecosystem:jquery, ebayui, accessibility, a11y |

## Links

- npm: https://www.npmjs.com/package/jquery-mouse-exit
- Repository: https://github.com/makeup-jquery/jquery-mouse-exit
- Homepage: https://github.com/makeup-jquery/jquery-mouse-exit#readme
- Issues: https://github.com/makeup-jquery/jquery-mouse-exit/issues
- npm.io page: https://npm.io/package/jquery-mouse-exit

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-10-18
- 1.0.0 — 2017-09-14
- 0.2.0 — 2016-06-17
- 0.1.1 — 2016-03-15

## README

# jquery-mouse-exit

<p>
    <a href="https://travis-ci.org/makeup-jquery/jquery-mouse-exit"><img src="https://api.travis-ci.org/makeup-jquery/jquery-mouse-exit.svg?branch=master" alt="Build Status" /></a>
    <a href='https://coveralls.io/github/makeup-jquery/jquery-mouse-exit?branch=master'><img src='https://coveralls.io/repos/makeup-jquery/jquery-mouse-exit/badge.svg?branch=master&service=github' alt='Coverage Status' /></a>
    <a href="https://david-dm.org/makeup-jquery/jquery-mouse-exit"><img src="https://david-dm.org/makeup-jquery/jquery-mouse-exit.svg" alt="Dependency status" /></a>
    <a href="https://david-dm.org/makeup-jquery/jquery-mouse-exit#info=devDependencies"><img src="https://david-dm.org/makeup-jquery/jquery-mouse-exit/dev-status.svg" alt="devDependency status" /></a>
</p>

jQuery collection plugin that triggers a 'mouseExit' event only when the mouse cursor has completely left the given element.

```js
// init plugin
$(collection).mouseExit(options);

// handle event
$(collection).on('mouseExit', function(e, data) {
    console.log(data.lostFocus, data.gainedFocus);
})
```

## Install

```js
npm install jquery-mouse-exit
```

## Options

* `delay` - milliseconds in delay before triggering mouseExit event

## Development

All tests are located in `test.js`.

Useful NPM scripts:

* `npm start` for local browser-sync development of gh-pages
* `npm test` runs tests & generates reports (see reports section below)
* `npm run tdd` test driven development: watches code and re-tests after any change
* `npm run build` cleans, lints, tests and minifies (called on `npm prepublish` hook)

Execute `npm run` to view all available CLI scripts.

## Reports

Each test run will generate the following reports:

* `/test_reports/coverage` contains Istanbul code coverage report
* `/test_reports/html` contains HTML test report
* `/test_reports/junit` contains JUnit test report

## CI Build

https://travis-ci.org/makeup-jquery/jquery-mouse-exit

## Code Coverage

https://coveralls.io/github/makeup-jquery/jquery-mouse-exit?branch=master

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