Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
raysk-vali
Advanced tools
npm i raysk-vali
or if you use yarn
yarn add raysk-vali
import Validate from 'raysk-vali'
OR
import { isEmail } from 'raysk-vali'
isEmail("abc@example.com") // true
isEmail("abcexample.com") // false
isUrl("www.example.com")
isDate("12/12/2020")
isEmpty(" ")
isDigit(22)
password("password")
isAlphaChar("asd")
isMobileNumber("+919999999999")
isAlphaNumChar("asd12")
isPANNumber("ABCPK4956K")
isGSTNumber("27AAPFU0939F1Z0")
isVehicleNumber("UT 32 DR 6423") // for indian vehicle number format
isMongoObjectId("5e3a7141c65baa1c5d1dd92b")
isEven(20) // true
isOdd(20) // false
you can pass custom regex for searching.
validate('YOUR VALUE', /^YOUR REGEX$/) : Boolean
import { validate } from 'raysk-vali'
const isValid = validate('this is awesome.', /^awesome$/)
console.log(isValid)
FAQs
# install
The npm package raysk-vali receives a total of 7 weekly downloads. As such, raysk-vali popularity was classified as not popular.
We found that raysk-vali 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.