univalid-key-logger
v1.0.2
Published
simple key logger and filters handler (sandbox)
Downloads
4
Maintainers
Readme
#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('[email protected]', '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©