![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
swipe-email-validator
Advanced tools
Validates emails based on regex, common typos, disposable email blacklists, DNS records and SMTP server response.
Validates email addresses based on regex, common typos, disposable email blacklists, DNS records and SMTP server response.
Compatible with nodejs only. Not browser ready.
Install like so
npm i swipe-email-validator --save
or with yarn
yarn add swipe-email-validator
Use like so
import { validate } from 'swipe-email-validator'
const main = async () => {
let res = await validate('asdf@gmail.com')
// {
// "valid": false,
// "reason": "smtp",
// "validators": {
// "regex": {
// "valid": true
// },
// "typo": {
// "valid": true
// },
// "disposable": {
// "valid": true
// },
// "mx": {
// "valid": true
// },
// "smtp": {
// "valid": false,
// "reason": "Mailbox not found.",
// }
// }
// }
// Can also be called with these default options
await validate({
email: 'name@example.org',
sender: 'name@example.org',
validateRegex: true,
validateMx: true,
validateTypo: true,
validateDisposable: true,
validateSMTP: true,
})
}
If you want to validate domains with TLDs that are not supported by default, you can use additionalTopLevelDomains
option:
await validate({
email: 'name@example.ir',
sender: 'name@example.ir',
validateRegex: true,
validateMx: true,
validateTypo: true,
validateDisposable: true,
validateSMTP: true,
additionalTopLevelDomains: [ 'ir' ]
})
For a list of TLDs that are supported by default you can see here.
FAQs
Validates emails based on regex, common typos, disposable email blacklists, DNS records and SMTP server response.
The npm package swipe-email-validator receives a total of 0 weekly downloads. As such, swipe-email-validator popularity was classified as not popular.
We found that swipe-email-validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.