JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 360
  • Score
    100M100P100Q89965F
  • License MIT

Parse DMARC policy strings

Package Exports

  • dmarc-parse

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dmarc-parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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