Parse and validate the syntax of DMARC (Domain-based Message Authentication, Reporting, and Conformance) DNS strings
npm install --save dmarc-parse
const dmarc = require('dmarc-parse');
let tags = dmarc('v=DMARC1; p=reject; rua=mailto:[email protected]');
// 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:[email protected]'
// }
// }
// }
npm install -g inspect-process
inspect node_modules/ava/profile.js some/test/file.js
ava --watch
or
npm test -- --watch
MIT © SoftVu