
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
validation-z
Advanced tools
Validation for fields/values in NodeJS. Inspired by the Laravel validation.
const ValidationZ = require('validation-z');
You can create a new object or call the makeValidation static method.
const inputs = {
name: 'Santiago,
age: '25'
}
const rules = {
name: ['required'],
age: ['integer', 'between:1,20']
}
let v = new ValidationZ(inputs, rules);
let errors = v.validate();
const inputs = {
name: 'Santiago',
age: '25'
}
const rules = {
name: ['required'],
age: ['integer', 'between:1,20']
}
let errors = ValidationZ.makeValidation(inputs, rules);
const inputs = {
name: 'Santiago',
age: '25'
}
const rules = {
name: ['required'],
age: ['integer', 'between:1,20']
}
const messages = {
required: ':elName es requerido',
age: {
between: 'La edad debe ser menor que :param1 y mayor que :param2',
required: 'La edad es un campo obligatorio'
}
}
let errors = ValidationZ.makeValidation(inputs, rules, messages);
between:1,5 when param1 is 1 and param2 is 5rule_name:param1,param2,paramx (Version when was released) Example
between:min,max (1.1.0) between:1,5
The value must be between the min and max value.
colorhexThe value must be a hexadecimal color like: #00FF00 or #3c3c3c
emailThe value must be a valid email address
in:blue,red,yellowThe variable's value must be equal to one of the value passed like parameter.
integerThe value must be an integer.
max:5The value must be equal or less than the given value.
min:5The value must be equal or greater than the given value.
requiredThe value must be different to: '', null and undefinded
FAQs
Easy validation for input fields in server side.
We found that validation-z demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.