@usevalid-email/js-sdk
v0.0.2
Published
Validate Your Emails with Confidence
Downloads
48
Maintainers
Readme
usevalid.email
Validate Your Emails with Confidence
Getting started
Installation
You can install the package via npm:
npm install @usevalid-email/js-sdkOr yarn:
yarn add @usevalid-email/js-sdkOr Bun.js:
bun add @usevalid-email/js-sdkUsage
// using Sdk
import Sdk from '@usevalid-email/js-sdk';
const sdk = new Sdk('your-api-key');
const validator = sdk.validator;
const email = '[email protected]';
validator.validate(email).then((response) => {
console.log(response);
});or
// using useValidEmail
import { useValidEmail } from '@usevalid-email/js-sdk';
const validator = useValidEmail('your-api-key');
const email = '[email protected]';
validator.validate(email).then((response) => {
console.log(response);
});Testing
npm run testContributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
