Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dmarc-parse

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmarc-parse

Parse DMARC policy strings

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
621
increased by47.51%
Maintainers
1
Weekly downloads
 
Created
Source

dmarc-parse Build Status Coverage Status Dependency Status XO code style

Parse and validate the syntax of DMARC (Domain-based Message Authentication, Reporting, and Conformance) DNS strings

Install

	npm install --save dmarc-parse

Usage

const dmarc = require('dmarc-parse');

let tags = dmarc('v=DMARC1; p=reject; rua=mailto:mailauth-reports@google.com');

// tags == {
//     tags: {
//         v: {
//             description: 'Protocol version',
//             value: 'DMARC1'
//         },
//         p: {
//             description: 'Policy to apply to email that fails the DMARC check. Can be "none", "quarantine", or "reject". "none" is used to collect feedback and gain visibility into email streams without impacting existing flows.',
//             value: 'reject'
//         },
//         rua: {
//             description: 'Addresses to which aggregate feedback is to be sent (comma-separated plain-text list of DMARC URIs',
//             value: 'mailto:mailauth-reports@google.com'
//         }
//     }
// }

Debugging

  npm install -g inspect-process
	inspect node_modules/ava/profile.js some/test/file.js

Watching Tests

	ava --watch

or

	npm test -- --watch

License

MIT © SoftVu

Keywords

FAQs

Package last updated on 01 May 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc