Validate your data in server or client for security
Supports CommonJS and ES6
npm install validate-thingsimport { function } from 'validate-things'; // ES6
const { function } = require('validate-things') // CommonJSValidateEmail({ email });
// email: stringValidateString({ string, minLength, maxLength, securityLevel, log });
// string: string
// minLength: number (minimum length you need)
// maxLength?: number (maximum length you need)
// securityLevel?: "high" | "normal" | "none" [default: "high"] (check for possible vulnerabilities in string)
// log?: boolean [default: false] (log checks in console)isXSS({ string });
// string: stringisSQLInjection({ string });
// string: stringisXXEInjection({ string });
// string: stringisLDAPInjection({ string });
// string: stringisCommandInjection({ string });
// string: string👤 Shubhankar Trivedi
-
Website: shubhankartrivedi.com
-
Github: @shubhankartrivedi
Give a ⭐️ if this project helped you!