UNPKG

atikin-universal-validator

Version:

A blazing-fast, zero-dependency validator for frontend and backend JS/TS applications.

60 lines (41 loc) โ€ข 1.78 kB
# Atikin Universal Validator A blazing-fast, universal input validator for **JavaScript** and **TypeScript** projects. Works perfectly on both **frontend and backend** with zero dependencies. ## ๐Ÿš€ Features - โœ… Zero dependencies - ๐Ÿ”„ Works on Node.js and browsers - ๐Ÿงช Built-in validators (`isEmail`, `isStrongPassword`, etc.) - ๐Ÿงฑ TypeScript support - ๐Ÿ”ง Simple API without schemas - ๐Ÿ“ฆ Ready for production ## ๐Ÿ“ฆ Installation ```bash npm install atikin-universal-validator ## โœจ Usage ```ts import { isEmail, isStrongPassword, validate } from 'atikin-universal-validator'; isEmail("hello@example.com"); // true const result = validate({ email: ["hello@example.com", "isEmail"], password: ["Hello@1234", "isStrongPassword"] }); console.log(result); // { success: true, errors: {} } ## FOLLOW US ON For more information: Join our social media for exciting updates, news, and insights! Follow us on : <!--Table--> | ACCOUNTS | USERNAME | |------------ | -------------- | | FACEBOOK | atikinverse | | INSTAGRAM | atikinverse | | LINKEDIN | atikinverse | | TWITTER (X) | atikinverse | | THREADS | atikinverse | | PINTREST | atikinverse | | QUORA | atikinverse | | REDDIT | atikinverse | | TUMBLR | atikinverse | | SNAPCHAT | atikinverse | | SKYPE | atikinverse | | GITHUB | atikinverse | Feel free to reach out if you have any questions or suggestions! Happy Coding! ๐Ÿš€