Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
neverbounce
Advanced tools
This is the official NeverBounce API NodeJS wrapper. It provides helpful methods to quickly implement our API in your NodeJS applications.
To install use the following command
$ npm install neverbounce --save
To start using the wrapper sign up for an account here and get your api keys here. This wrapper utilizes ES6 Promises to handle the API calls.
To initialize the wrapper use the following snippet, substituting in your api key
and api secrete key
...
var NeverBounce = require('neverbounce')({
apiKey: API_KEY,
apiSecret: API_SECRET_KEY
});
You can now access the verify method from this object. To validate a single email use the following...
NeverBounce.single.verify(EMAIL_TO_VALIDATE).then(
function(result) {
// do stuff
},
function(error) {
// errors will bubble up through the reject method of the promise.
// you'll want to console.log them otherwise it'll fail silently
}
);
The result
returned in from the verification promise will be a Result
object. It provides several helper methods documented below...
result.getResult(); // Numeric result code; ex: 0, 1, 2, 3, 4
result.getResultTextCode(); // Textual result code; ex: valid, invalid, disposable, catchall, unknown
result.is(0); // Returns true if result is valid
result.is([0,3,4]); // Returns true if result is valid, catchall, or unknown
result.not(1); // Returns true if result is not invalid
result.not([1,2]); // Returns true if result is not invalid or disposable
FAQs
An API wrapper for the NeverBounce API
The npm package neverbounce receives a total of 3,530 weekly downloads. As such, neverbounce popularity was classified as popular.
We found that neverbounce demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.