# click-outside-js

> Standalone javascript library to make click outside event

Latest version **0.0.2** (published 2016-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install click-outside-js
pnpm add click-outside-js
yarn add click-outside-js
bun add click-outside-js
```

## 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.0.2 |
| Published | 2016-11-27 |
| First published | 2016-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Naufal Rabbani |
| Maintainers | bosnaufal |
| Keywords | event, standalone, click, click-outside |

## Links

- npm: https://www.npmjs.com/package/click-outside-js
- Repository: https://github.com/BosNaufal/click-outside-js
- Homepage: https://bosnaufal.github.io/click-outside-js
- Issues: https://github.com/BosNaufal/click-outside-js/issues
- npm.io page: https://npm.io/package/click-outside-js

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2016-11-27
- 0.0.1 — 2016-10-21

## README

# Click Outside JS
Standalone javascript library to make click outside event. You can use it anywhere even with other JS library~ It Just works!

#### [DEMO](https://bosnaufal.github.io/click-outside-js)

## Install
Include [click-outside.js](./click-outside.min.js) to your web page.

or

You can install it via NPM
```bash
npm install click-outside-js
```


## Usage
```javascript
// Define the element
var el = document.getElementById('target');

// Make New Click Outside Event
var myEvent = new onClickOutside(el, function() {
  console.log("You've Just Clicked Outside The Box!");
})

// Other Methods
// myEvent.remove() // To Remove Event Listener
// myEvent.reinit() // To Reinit Event Listener

```

## Thank You for Making this useful~

## Let's talk about some projects
Just Contact Me At:
- Email: [bosnaufalemail@gmail.com](mailto:bosnaufalemail@gmail.com)
- Skype Id: bosnaufal254
- twitter: [@BosNaufal](https://twitter.com/BosNaufal)

## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2016 - forever Naufal Rabbani

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