
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
validation-x
Advanced tools
[![npm package][npm-badge]][npm] ![npm-bundle-size] ![Module formats][module-formats] ![npm-download-count]
Simple chain validator for string, number, date input
Name | Type | Description |
---|---|---|
string | func(errorMessage:string) | Type check |
required | func(errorMessage:string) | isEmpty check |
len | func(val: number, errorMessage:string) | Exact length check for input |
min | func(val: number, errorMessage:string) | Min length for input |
max | func(val: number, errorMessage:string) | Max length for input |
matches | func(val: number, errorMessage:string) | regex check |
func(errorMessage:string) | Email check with (/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,4}$/) | |
url | func(errorMessage:string) | URL check with (/((([A-Za-z]{3,9}:(?://)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+ |
lowercase | func(errorMessage:string) | lowercase check |
uppercase | func(errorMessage:string) | uppercase check |
custom | func(func, errorMessage:string) | check with provided custom function |
Name | Type | Description |
---|---|---|
number | func(errorMessage:string) | Type check |
min | func(val: number, errorMessage:string) | Min for input |
max | func(val: number, errorMessage:string) | Max for input |
positive | func(errorMessage:string) | If input is positive number |
negative | func(errorMessage:string) | If input is negative number |
matches | func(val: number, errorMessage:string) | regex check |
custom | func(func, errorMessage:string) | check with provided custom function |
Name | Type | Description |
---|---|---|
min | func(val: Date, errorMessage:string) | Min for input |
max | func(val: Date, errorMessage:string) | Max for input |
This project is licensed under the MIT License - see the LICENCE.md file for details
FAQs
[![npm package][npm-badge]][npm] ![npm-bundle-size] ![Module formats][module-formats] ![npm-download-count]
The npm package validation-x receives a total of 2 weekly downloads. As such, validation-x popularity was classified as not popular.
We found that validation-x 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.