# univalid-key-logger

> simple key logger and filters handler (sandbox)

Latest version **1.0.2** (published 2018-07-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install univalid-key-logger
pnpm add univalid-key-logger
yarn add univalid-key-logger
bun add univalid-key-logger
```

## 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.2 |
| Published | 2018-07-03 |
| First published | 2018-03-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 'stetsD' |
| Maintainers | stetsd |
| Keywords | filter, key, logger, regexp, input, univalid, validation, validate, sandbox, form |

## Links

- npm: https://www.npmjs.com/package/univalid-key-logger
- Repository: https://github.com/StetsD/univalid-key-logger
- Homepage: https://github.com/StetsD/univalid-key-logger#readme
- Issues: https://github.com/StetsD/univalid-key-logger
- npm.io page: https://npm.io/package/univalid-key-logger

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-07-03
- 1.0.1 — 2018-03-03
- 1.0.0 — 2018-03-01

## README

#univalid-key-logger

Simple key logger and filters handler (sandbox) <br>
Univalid module dependency.


## Install

```sh
npm i univalid-key-logger
```


## Usage

```js
const UKL = require('univalid-key-logger');
const keyLogger = UKL();
```


## API


#### logXss(value)

Catch xss syntax 

**value** - Type `string`

```js
keyLogger.logXss('<mzf>');
```


#### test(value, tmp)

Tests the pattern matching.

**value** - Type `string`

**tmp** - Type `string`

In current moment available only "email" template

```js
keyLogger.test('test@mail.com', 'email');
```


#### applyFilter(filter, value)

Tests the pattern matching of symbols

**filter** - Type `string`

In current moment available patterns supporting "univalid-strategy-form" module:
* oL - only latin symbols
* oC - only cyrillic symbols
* oN - only numbers
* oP - only numbers and latin symbols

**value** - Type `string`

```js
keyLogger.applyFilter('oL', 'I am bored');
```


#### onFilter(event, filter)

Tests the pattern matching of symbols (by event)

**event** - Type `object` - native object of event

**filter** - Type `string`

In current moment available patterns supporting "univalid-strategy-form" module:
* oL - only latin symbols
* oC - only cyrillic symbols
* oN - only numbers
* oP - only numbers and latin symbols

```js
keyLogger.onFilter(e, 'oC');
```

## License

ISC©

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