Requirements

Runtime Requirements

js-validation is a zero-dependency vanilla JavaScript library. It requires no external libraries or frameworks at runtime.

RequirementMinimum Version
JavaScriptES6+ (ES2015)
BrowserAny modern browser (see Browser Support)

Development Requirements

For building and contributing to the library:

ToolMinimum VersionPurpose
Node.js>= 22Build and test tooling
npm>= 10Package management

Development Dependencies

PackagePurpose
ViteBuild tool and bundler
VitestUnit testing framework
PlaywrightEnd-to-end testing
TerserJavaScript minification

Setup for Development

# Clone the repository
git clone https://github.com/PHPDevsr/js-validation.git
cd js-validation

# Install dependencies
npm install

# Build the library
npm run build

# Run unit tests
npm test

# Run E2E tests
npm run test:e2e