Skip to content

claranceliberi/Valdie

 
 

Repository files navigation

Valdie

CI npm NPM Downloads

A TypeScript and JavaScript Validation Library that works 🔨 - It doesn't use any libraries 🎉 - It's easy to use 💪 - It's easy to extend 📦

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

isInteger

let { message,success } = isEmail("test@gmail.com")


```javascript
console.log(isInteger(34)) // true

import validator from "valdie"

let { message,success } = validator("mystring").isString().isEmail()


Using builder method


```javascript
import validator from "valdie"
let {message,success} = valdie(20).isURL().isTel().validate()

For contributors

Doors are open for any kind of contribution PRs and Issues, before submittin your PR or Issue to take a look in our CONTRIBUTOR_COVENANT and CONTRIBUTING_PRACTICES

To easy the review, describe your PR. You can find the PR description templete in our CONTRIBUTOR_COVENANT

Maintainers

Licence

The project is under MIT Licence 2021

Packages

No packages published

Languages

  • TypeScript 98.4%
  • JavaScript 1.3%
  • Shell 0.3%