# watch-typing

> This plugin is for watching the typing action whether the input is ready to be used or not.

Latest version **1.0.3** (published 2018-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install watch-typing
pnpm add watch-typing
yarn add watch-typing
bun add watch-typing
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-04-23 |
| First published | 2018-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.20 |
| Dependencies | 0 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | leandro.vital |
| Keywords | watch, type, listen, typing, watch-typing |

## Links

- npm: https://www.npmjs.com/package/watch-typing
- Repository: https://github.com/lvitals/watch-typing
- Homepage: https://github.com/lvitals/watch-typing#readme
- Issues: https://github.com/lvitals/watch-typing/issues
- npm.io page: https://npm.io/package/watch-typing

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-04-23
- 1.0.2 — 2018-04-23
- 1.0.1 — 2018-04-23
- 1.0.0 — 2018-04-23

## README

# watch-typing

This plugin is for watching the typing action whether the input is ready to be used or not.[(Try it)](http://merry.ee.ncku.edu.tw/~yuting/watch-typing/)

## Install

Installing via npm
 
`npm install watch-typing`

Installing via github

`git clone git@github.com:lvitals/watch-typing.git`
	

## Usage

Include script after the jQuery library.

```html
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="watch-typing.js"></script> 
```


Invoke the watchTyping method

```javascript
$(':text').watchTyping( options );
```


`watch-typing` takes three arguments

* `start` - This function gets fired when user press the key.
* `stop`  - This function gets fired after a period of time when user release the key.
* `delay` - The period from user releasing the key to invoking the stop function. 


####example:

```javascript
$(':text').watchTyping({
  start: function(event, $elem){
    return $elem.css('background', 'orange');
  },
  stop: function(event, $elem){
    return $elem.css('background', 'red');
  },
  delay: 400
});
```

When pressing the key, the textarea turns orange. 
0.4 seconds later, the testarea turns red.


## Reference

https://github.com/narfdotpl/jquery-typing

https://github.com/dennyferra/TypeWatch

## LICENSE(MIT)

Copyright (C) 2014 Tien-Hao Chang darby@mail.ncku.edu.tw

Copyright (C) 2018 Leandro Vital leavitals@gmail.com

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