Skip to content

stetsd/univalid-key-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#univalid-key-logger

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

Install

npm i univalid-key-logger

Usage

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

API

logXss(value)

Catch xss syntax

value - Type string

keyLogger.logXss('<mzf>');

test(value, tmp)

Tests the pattern matching.

value - Type string

tmp - Type string

In current moment available only "email" template

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

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
keyLogger.onFilter(e, 'oC');

License

ISC©

About

Simple key logger and filters handler (sandbox)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published