@activeprospect/freemail 中文文档教程
freemail
免费和一次性的数据库 电子邮件域和一个方便的 Node.js 模块来查询它。
使用Node.js模块或者访问./data
目录下的文件并解析 用你选择的语言。
为了创建最新的域列表,数据库可以是 与网络上的各种列表同步。 您还可以添加新的 通过打开拉取请求直接访问域。
Database
该项目中存在三个关键数据文件:
- free.txt contains a list of domains that are known to provide free email service
- disposable.txt contains a list of domains that are known to provide disposable email service
- blacklist.txt contains a list of domains that this project will refuse to add to either list
Domains may only be a member of one list。
Updating the database
运行 ./update
以从中列出的源中获取最新域 <代码>源文件.txt。 默认情况下,所有新域都将放置在 free.txt
中。 如果任何域提供一次性电子邮件服务,它们可能会被转移到 <代码>一次性.txt。
Node
Install
npm install --save freemail
var freemail = require('freemail');
freemail.isFree('smith@gmail.com');
> true
freemail.isFree('jack@mailinater.com');
> true
freemail.isDisposable('smith@gmail.com');
> false
freemail.isDisposable('jack@mailinater.com');
> true
freemail
A database of free and disposable email domains and a handy Node.js module for querying it.
Use the Node.js module or access the files in the ./data
directory and parse with your language of choice.
In an effort to create the most up-to-date list of domains, the database can be synchronized with various lists from around the web. You can also add new domains directly by opening a pull request.
Database
There are three key data files in this project:
- free.txt contains a list of domains that are known to provide free email service
- disposable.txt contains a list of domains that are known to provide disposable email service
- blacklist.txt contains a list of domains that this project will refuse to add to either list
Domains may only be a member of one list.
Updating the database
Run ./update
to pull in the latest domains from the sources listed in sources.txt
. All new domains will be placed in free.txt
by default. If any domains provide disposable email service, they may be moved to disposable.txt
.
Node
Install
npm install --save freemail
var freemail = require('freemail');
freemail.isFree('smith@gmail.com');
> true
freemail.isFree('jack@mailinater.com');
> true
freemail.isDisposable('smith@gmail.com');
> false
freemail.isDisposable('jack@mailinater.com');
> true