Skip to content

Validator plugin for Superpowers, the extensible HTML5 2D+3D game engine.

Notifications You must be signed in to change notification settings

AntarkaGame/superpowers-validator-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

superpowers-validator-plugin

Validator plugin for Superpowers, the extensible HTML5 2D+3D game engine.

A library of string validators and sanitizers.

Documentation

Use validator as usual :

validator.equals("abc", "Abc");
validator.contains("foo", "foobar");
validator.matches("foobar", "foo/i");
validator.isEmail("sample");
validator.isURL("sample");
validator.isFQDN("sample");
validator.isIP("sample");
validator.isAlpha("sample");
validator.isNumeric("sample");
validator.isAlphanumeric("sample");
validator.isBase64("sample");
validator.isHexadecimal("sample");
validator.isHexColor("sample");
validator.isLowercase("sample");
validator.isUppercase("sample");
validator.isInt("sample");
validator.isFloat("sample");
validator.isDivisibleBy("sample", 2);
validator.isNull("sample");
validator.isLength("sample", 3, 5);
validator.isByteLength("sample", 3);
validator.isUUID("sample");
validator.isDate("sample");
validator.isAfter("sample");
validator.isBefore("sample");
validator.isIn("sample", []);
validator.isCreditCard("sample");
validator.isISBN("sample");
validator.isJSON("sample");
validator.isMultibyte("sample");
validator.isAscii("sample");
validator.isFullWidth("sample");
validator.isHalfWidth("sample");
validator.isVariableWidth("sample");
validator.isSurrogatePair("sample");
validator.isMongoId("sample");
validator.toString(123);
validator.toDate(1225);
validator.toFloat('011');
validator.toInt('aa');
validator.toBoolean('yes!');
validator.trim('  triming  ');
validator.ltrim('  triming  ');
validator.rtrim('  triming  ');
validator.escape('<script>');
validator.stripLow('\x7Ffoo\x02');
validator.whitelist('ab', 'abcdef');
validator.blacklist('abc', 'abcdef');
validator.normalizeEmail('!');

More here :

https://www.npmjs.com/package/validator

Installation

Download the latest release, unzip it, rename the folder to Jquery, move it inside app/plugins/fraxken/ then restart your server.

About

Validator plugin for Superpowers, the extensible HTML5 2D+3D game engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published