valdie
v0.1.2
Published
Modern javaScript and typescript Validator that just works
Downloads
36
Maintainers
Readme
Valdie
A TypeScript and JavaScript Validation Library that works
- 🎉 It doesn't have any dependancy
- 💪 Simple api
- 📦 It works with TypeScript
You probably never knew you needed it but here you go.
Getting started
npm i valdie
or
yarn add valdie
using deno
import valdie from 'https://cdn.skypack.dev/valdie'
Documentation
isEmail
isInteger
isString
isURL
They are two ways of consuming our api
import { isEmail } from "valdie"
console.log(isEmail("[email protected]")) // true
let { message,success } = isEmail("[email protected]")
isInteger
console.log(isInteger(34)) // true
Maintainers
Licence
The project is under MIT Licence 2021