
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
validator-lite
Advanced tools
Lightweight Form Validation (no dependencies)
$ npm install --save validator-lite
<form id="demo">
<div class="form-control">
<label>Email Address</label>
<input type="email" name="email">
</div>
<div class="form-control">
<label>Password</label>
<input id="pw" type="password" name="password1">
</div>
<div class="form-control">
<label>Confirm Password</label>
<input type="password" name="password2">
</div>
<button type="submit">Register</button>
</form>
<script src="validator.min.js"></script>
<script>
var demo = document.getElementById('demo');
var val = new Validator({
form: demo,
fieldClass: 'form-control',
rules: {
email: {
required: true,
message: 'You must enter an email',
test: 'email'
},
password1: {
required: true,
message: 'You must enter a password',
test: 'password'
},
password2: {
required: true,
test: 'equals'
message: 'Please confirm your password',
arg: function () {
return demo.querySelector('input#pw').value;
}
},
},
onFail: function () {
alert('Please correct all errors!');
},
onPass: function (elem) {
elem.reset();
window.location.href = '/welcome';
}
});
</script>
Add custom tests or override included defaults.
Type: Element
Default: null
Lorem ipsum.
Type: Object
Default: {}
Lorem ipsum.
Type: String
Default: 'error'
Lorem ipsum.
Type: String
Default: 'Required'
Lorem ipsum.
Type: Function
Default: noop
Lorem ipsum.
Type: Function
Default: noop
Lorem ipsum.
MIT © Luke Edwards
FAQs
Lightweight Form Validation (no dependencies)
The npm package validator-lite receives a total of 2 weekly downloads. As such, validator-lite popularity was classified as not popular.
We found that validator-lite 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
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.