Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about a small usage example? #822

Open
Aditya94A opened this issue Jun 23, 2020 · 2 comments
Open

How about a small usage example? #822

Aditya94A opened this issue Jun 23, 2020 · 2 comments

Comments

@Aditya94A
Copy link

The readme doesn't say much. I had to look up the format of the json file to find out that I have to loop over it and check if email.includes(arrayItem).

Since it is a library, perhaps adding a small helper method would be a good idea?

@filiptronicek
Copy link

I think this is a good idea, upon looking around the web I found this could help:

function validateEmailNotDisposable(mailHost) {
    fetch(`https://open.kickbox.com/v1/disposable/${mailHost}`)
      .then(response => response.json())
      .then(obj => obj.disposable && alert("Not valid!"))
}

@karlhorky
Copy link

karlhorky commented Apr 18, 2023

Also added one in this PR:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants