Installation
We use npm to install valiend and install it with this command in the system terminal
npm install --save valiend
Import valiend into the project
valiend is available in both common js and es module, depending on your usage you can call it in any way you want.
Common js
const valiend = require('valiend');
valiend.isEmail('aeromche@gmail.com');
or
const { isEmail } = require('valiend');
isEmail('aeromche@gmail.com');
ES Module
import valiend from 'valiend';
valiend.isEmail('aeromche@gmail.com');
or
import { isEmail } 'valiend';
isEmail('aeromche@gmail.com');