Skip to content

shubhankartrivedi/validate-things

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Security Thing for your Project 🛡️

Version License: MIT

Validate your data in server or client for security

Supports CommonJS and ES6

Install

npm install validate-things

Functions Usage

Import Functions:

import { function } from 'validate-things'; // ES6
const { function } = require('validate-things') // CommonJS

Validate Email:

ValidateEmail({ email });
// email: string

Validate String for Vulnerabilities and length:

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)

Check for XSS (Cross-Site-Scripting) Attacks:

isXSS({ string });
// string: string

Check for SQL Injection:

isSQLInjection({ string });
// string: string

Check for XML External Entity (XXE) Injection:

isXXEInjection({ string });
// string: string

Check for LDAP Injection:

isLDAPInjection({ string });
// string: string

Check for Command Injection:

isCommandInjection({ string });
// string: string

Author

👤 Shubhankar Trivedi

Show your support

Give a ⭐️ if this project helped you!


About

Validate your data in server or client for security

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published