
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Email Verification that's astonishingly easy and low-cost. See https://emailable.com for details.
This is the official node wrapper for the Emailable API.
See the Node API docs.
Install the package with:
npm install emailable --save
# or
yarn add emailable
The Emailable API requires either an API key or an access token for authentication. API keys can be created and managed in the Emailable Dashboard.
An API key can be set globally for the Emailable client:
// require with API key
var emailable = require('emailable')('your_api_key')
// ES6 import
import Emailable from 'emailable';
const emailable = Emailable('your_api_key');
Or, you can specify an apiKey
or an accessToken
with each request:
// set api_key at request time
emailable.verify({ apiKey: 'your_api_key' })
// set access_token at request time
emailable.verify({ accessToken: 'your_api_key' })
// verify an email address
emailable.verify('jarrett@emailable.com')
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
You can also pass any of the additional
options
as a second parameter to verify
.
emailable.verify('jarrett@emailable.com', { timeout: 10 })
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
Some email servers are slow to respond. As a result the timeout may be reached before we are able to complete the verification process. If this happens, the verification will continue in the background on our servers. We recommend sleeping for at least one second and trying your request again. Re-requesting the same verification with the same options will not impact your credit allocation within a 5 minute window.
{
message: 'Your request is taking longer than normal. Please send your request again.'
}
var emails = ['jarrett@emailable.com', 'support@emailable.com', ...]
emailable.batches.verify(emails)
.then(function (response) {
console.log(response.id);
});
You can also pass any of the additional
options
as a second parameter to verify
.
emailable.batches.verify(emails, { url: 'https://emailable.com/' }).
then(function (response) {
console.log(response.id);
});
Calling batches.status
with the batch id will return the batch's status.
This will also return the results once the batch is complete.
var id = '5cfcbfdeede34200693c4319'
emailable.batches.status(id)
.then(function (response) {
console.log(response);
});
Run all tests:
$ yarn install
$ yarn test
If you do not have yarn
installed, you can get it with npm install --global yarn
.
Run a single test suite without a coverage report:
$ yarn test test/verify.spec.js
Bug reports and pull requests are welcome on GitHub at https://github.com/emailable/emailable-node.
FAQs
Email Verification that's astonishingly easy and low-cost. See https://emailable.com for details.
The npm package emailable receives a total of 1,416 weekly downloads. As such, emailable popularity was classified as popular.
We found that emailable 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.