# dom-xinput

> Cross browser oninput event observer

Latest version **0.0.4** (published 2017-08-04) · 0 weekly downloads

## Install

```sh
npm install dom-xinput
pnpm add dom-xinput
yarn add dom-xinput
bun add dom-xinput
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2017-08-04 |
| First published | 2017-08-04 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | normanzb |

## Links

- npm: https://www.npmjs.com/package/dom-xinput
- Repository: https://github.com/normanzb/xinput
- Homepage: https://github.com/normanzb/xinput#readme
- Issues: https://github.com/normanzb/xinput/issues
- npm.io page: https://npm.io/package/dom-xinput

## Recent versions

- 0.0.4 (latest) — 2017-08-04

## README

# XInput

Cross browser input event observer

# Usage

Use it as global variable:

    var x = new XInput();
    x.observe(elInput);
    x.oninput = function(){
        console.log('input changed');
    };

Or use it as amd module:

    require(['./XInput'], function(XInput){
        var x = new XInput();
        x.observe(elInput);
        x.oninput = function(){
            console.log('input changed');
        };
    });


# Method

* observe: start observing the change
* neglect: stop observing the change
* sync: sync up input value (usually after value is changed by code)
* trigger: will call into oninput event handler

# Callback

* oninput: will be called once the input value gets changed

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