New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

spf-validator

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spf-validator

Used to validate SPF records

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

spf-validator

This module wraps utilities for checking and validating SPF records.

Install

$ 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()

Keywords

spf

FAQs

Package last updated on 21 Sep 2016

Did you know?

Socket

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.

Install

Related posts