spf-validator

Utilities for checking SPF records

Showing:

Popularity

Downloads/wk

118

GitHub Stars

4

Maintenance

Last Commit

5mos ago

Contributors

10

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

spf-validator

This module wraps utilities for checking and validating SPF records.

Install

$ npm install spf-validator

or

$ npm install spf-validator --save

Usage

Initialization

We simply construct an SPFValidator by passing the domain of interest.

var SPFValidator = require('spf-validator');
var validator = new SPFValidator('mixmax.com');

Checking for the existence of SPF records

We can then see if this domain has any SPF records setup.

validator.hasRecords((err, hasRecords) => console.log(hasRecords));

Changelog

0.2.0 - Make sure we don't have errors when a domain isn't registered or doesn't have any TXT records. 0.1.0 - Constructor and hasRecords()

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial