#univalid-key-logger
Simple key logger and filters handler (sandbox)
Univalid module dependency.
npm i univalid-key-logger
const UKL = require('univalid-key-logger');
const keyLogger = UKL();
Catch xss syntax
value - Type string
keyLogger.logXss('<mzf>');
Tests the pattern matching.
value - Type string
tmp - Type string
In current moment available only "email" template
keyLogger.test('test@mail.com', 'email');
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');
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');
ISC©