npm.io
0.1.2 • Published 4 years ago

valdie

Licence
MIT
Version
0.1.2
Deps
0
Size
27 kB
Vulns
0
Weekly
0
Stars
18

Valdie

CI npm NPM Downloads

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
  1. isEmail
  2. isInteger
  3. isString
  4. isURL
They are two ways of consuming our api

import { isEmail } from "valdie"

console.log(isEmail("test@test.com")) // true
let { message,success } = isEmail("test@gmail.com")
isInteger
console.log(isInteger(34)) // true

Maintainers

Licence

The project is under MIT Licence 2021

Keywords