0.0.4 • Published 7 months ago

lesca-validate v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

React React React React React NPM React NPM

Why use it?

check is validate email, phone number and url format.

Live Demo

Installation

npm install lesca-validate --save

Usage

As a Node module:

import {
  ValidateEmail,
  ValidatePhone,
  ValidateURL,
  ValidateYoutubeURL,
  ValiDateInvoice,
} from 'lesca-validate';

const email = 'username@host.com';
ValidateEmail(email); // true

const phone = '0912345678';
ValidatePhone(phone); // true

const url = 'https://google.com';
ValidatePhone(url); // true

const youtubeURL = 'https://www.youtube.com/watch?v=09839DpTctU';
ValidateYoutubeURL(youtubeURL); // '09839DpTctU';

const invoiceNumber = 'XS12345678';
ValiDateInvoice(invoiceNumber); // 'true';

Features

  • maintain if necessary
0.0.4

7 months ago

0.0.3

9 months ago

0.0.2

1 year ago

0.0.1

1 year ago