Deno

Deno Installation

You can contribute to the package by visiting the GitHub repository (opens in a new tab).

You can install the package via deno.land/x:

deno install --allow-net --allow-read --unstable -n usevalid-email https://deno.land/x/usevalid_email_sdk/main.ts

Usage

// using Sdk
import Sdk from "https://deno.land/x/usevalid_email_sdk/main.ts";
 
const sdk = new Sdk("your-api-key");
const validator = sdk.validator;
 
const email = "test@gmail.com";
 
validator.validate(email).then((response) => {
  console.log(response);
});

or

// using useValidEmail
import { useValidEmail } from "https://deno.land/x/usevalid_email_sdk/main.ts";
 
const email = "test@gmail.com";
const validator = useValidEmail("your-api-key");
 
validator(email).then((response) => {
  console.log(response);
});