Validate your data in server or client for security
Supports CommonJS and ES6
npm install validate-things
import { function } from 'validate-things'; // ES6
const { function } = require('validate-things') // CommonJS
ValidateEmail({ email });
// email: string
ValidateString({ 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: string
isSQLInjection({ string });
// string: string
isXXEInjection({ string });
// string: string
isLDAPInjection({ string });
// string: string
isCommandInjection({ string });
// string: string
👤 Shubhankar Trivedi
-
Website: shubhankartrivedi.com
-
Github: @shubhankartrivedi
Give a ⭐️ if this project helped you!