{"_id":"@emarketeer/spf-check","_rev":"8-4b820c03f54d7542a824674c2a1cc7fb","name":"@emarketeer/spf-check","dist-tags":{"beta":"1.0.0-beta.2","latest":"1.2.0"},"versions":{"1.0.0-beta.1":{"name":"@emarketeer/spf-check","version":"1.0.0-beta.1","keywords":["spf","dns"],"author":{"name":"eMarketeer AB","email":"dev@emarketeer.com"},"license":"MIT","_id":"@emarketeer/spf-check@1.0.0-beta.1","maintainers":[{"name":"hamid_sajjadi","email":"hamid.sajjadi@emarketeer.com"},{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"}],"homepage":"https://github.com/eMarketeerSE/node-spf-check#readme","bugs":{"url":"https://github.com/eMarketeerSE/node-spf-check/issues"},"nyc":{"exclude":["spec/"]},"dist":{"shasum":"3cc97da4d7c7d3ea752a589f47572e575aa26ee2","tarball":"https://registry.npmjs.org/@emarketeer/spf-check/-/spf-check-1.0.0-beta.1.tgz","fileCount":10,"integrity":"sha512-n1HhgTx9LZ7GHPKEhS5/oxBqIAZ7uks7gSua6TP8ncFSR6dT3yOA2J60LyIxdWiVqd/nSZ4XfvOYuIWwkWXOVg==","signatures":[{"sig":"MEUCIHdBT7Z+ynkk0uPiInGGEd+7zNKvWDTbTZnWBfSUUxTdAiEAnhnViod6UZuC7OITW2ATSzerEbIJApRPD9AOaECYdc0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37475},"gitHead":"418f755687ae3637059c7e5f540e71286d93bfaf","scripts":{"lcov":"nyc report --reporter=text-lcov","test":"jasmine","htmlcov":"nyc report --reporter=html","testcov":"nyc jasmine"},"_npmUser":{"name":"hamid_sajjadi","email":"hamid.sajjadi@emarketeer.com"},"repository":{"url":"git+https://github.com/eMarketeerSE/node-spf-check.git","type":"git"},"_npmVersion":"8.19.4","description":"SPF validator","directories":{},"_nodeVersion":"20.11.1","dependencies":{"tldjs":"^2.3.1","lodash":"^4.17.11","ipaddr.js":"^1.8.1","spf-parse":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.1.0","karma":"^6.4.3","jasmine":"^3.3.1","karma-jasmine":"^5.1.0","semantic-release":"^19.0.2","jasmine-spec-reporter":"^4.2.1"},"_npmOperationalInternal":{"tmp":"tmp/spf-check_1.0.0-beta.1_1710938834709_0.19761609061610774","host":"s3://npm-registry-packages"}},"1.0.0-beta.2":{"name":"@emarketeer/spf-check","version":"1.0.0-beta.2","keywords":["spf","dns"],"author":{"name":"eMarketeer AB","email":"dev@emarketeer.com"},"license":"MIT","_id":"@emarketeer/spf-check@1.0.0-beta.2","maintainers":[{"name":"hamid_sajjadi","email":"hamid.sajjadi@emarketeer.com"},{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"}],"homepage":"https://github.com/eMarketeerSE/node-spf-check#readme","bugs":{"url":"https://github.com/eMarketeerSE/node-spf-check/issues"},"dist":{"shasum":"c1e4727eb6740cd671ed0fd62816223dab6fcb42","tarball":"https://registry.npmjs.org/@emarketeer/spf-check/-/spf-check-1.0.0-beta.2.tgz","fileCount":13,"integrity":"sha512-Q4bwsTXucwKGlieXkpWtqSB/UHae7a57dw6X1K4aLWsGS+vCg4CF2vTPXnIm1LAAuQaT1wdEIJ3XBmjWZFGWWw==","signatures":[{"sig":"MEUCIDM8PHOJy5ZDksu75kyB7nkZrUus+f5X2Flt1bNX6R8JAiEAnSzlsG251umP3bmQYF/AMF/dwxevHv3krAdBCJwXXhY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45152},"gitHead":"c27ad4844ceee9c8e3f9f0883d06eb47da0e93e9","scripts":{"test":"jasmine","gen-types":"npx tsc --declaration --emitDeclarationOnly"},"typings":"types/index.d.ts","_npmUser":{"name":"hamid_sajjadi","email":"hamid.sajjadi@emarketeer.com"},"repository":{"url":"git+https://github.com/eMarketeerSE/node-spf-check.git","type":"git"},"_npmVersion":"8.19.4","description":"SPF validator","directories":{},"_nodeVersion":"20.11.1","dependencies":{"tldjs":"^2.3.1","lodash":"^4.17.11","ipaddr.js":"^1.8.1","spf-parse":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"karma":"^6.4.3","jasmine":"^3.3.1","typescript":"^5.4.2","karma-jasmine":"^5.1.0","semantic-release":"^19.0.2","jasmine-spec-reporter":"^4.2.1"},"_npmOperationalInternal":{"tmp":"tmp/spf-check_1.0.0-beta.2_1710943203204_0.8855421963675567","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@emarketeer/spf-check","version":"1.0.0","keywords":["spf","dns"],"author":{"name":"eMarketeer AB","email":"dev@emarketeer.com"},"license":"MIT","_id":"@emarketeer/spf-check@1.0.0","maintainers":[{"name":"hamid_sajjadi","email":"hamid.sajjadi@emarketeer.com"},{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"}],"homepage":"https://github.com/eMarketeerSE/node-spf-check#readme","bugs":{"url":"https://github.com/eMarketeerSE/node-spf-check/issues"},"dist":{"shasum":"6de46aba56b19295828602071c133ddfd36edd78","tarball":"https://registry.npmjs.org/@emarketeer/spf-check/-/spf-check-1.0.0.tgz","fileCount":13,"integrity":"sha512-4AiMKT/UAdcoGqvpcMKr0hVPr1dLTriTTSWv24aUoQovpISJFgPssuBzkTkkQ4yQkBJzbXkyV0E6tXkQBO+B1Q==","signatures":[{"sig":"MEYCIQCiMZcowPrRBqP0IwiOggH5g2DWM+IsdGb7U2o0d4sFGwIhAOJjItNFeRPvpzYxTV/Stu6BaUFPWGZRasuaFOBkEgo+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45145},"gitHead":"09e7e5fb692bf785f8cb687c4371a3211d12c755","scripts":{"test":"jasmine","gen-types":"npx tsc --declaration --emitDeclarationOnly"},"typings":"types/index.d.ts","_npmUser":{"name":"hamid_sajjadi","email":"hamid.sajjadi@emarketeer.com"},"repository":{"url":"git+https://github.com/eMarketeerSE/node-spf-check.git","type":"git"},"_npmVersion":"8.19.4","description":"SPF validator","directories":{},"_nodeVersion":"20.11.1","dependencies":{"tldjs":"^2.3.1","lodash":"^4.17.11","ipaddr.js":"^1.8.1","spf-parse":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"karma":"^6.4.3","jasmine":"^3.3.1","typescript":"^5.4.2","karma-jasmine":"^5.1.0","semantic-release":"^19.0.2","jasmine-spec-reporter":"^4.2.1"},"_npmOperationalInternal":{"tmp":"tmp/spf-check_1.0.0_1710943816296_0.6532052213975452","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@emarketeer/spf-check","version":"1.1.0","keywords":["spf","dns"],"author":{"name":"eMarketeer AB","email":"dev@emarketeer.com"},"license":"MIT","_id":"@emarketeer/spf-check@1.1.0","maintainers":[{"name":"hamid_sajjadi","email":"hamid.sajjadi@emarketeer.com"},{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"}],"homepage":"https://github.com/eMarketeerSE/node-spf-check#readme","bugs":{"url":"https://github.com/eMarketeerSE/node-spf-check/issues"},"dist":{"shasum":"067d5ac82968bef3dadf77ca8416a5989b0c96f9","tarball":"https://registry.npmjs.org/@emarketeer/spf-check/-/spf-check-1.1.0.tgz","fileCount":13,"integrity":"sha512-I3ki3hTpsHuInNZKdUKssa77fFlZ7/IsnQLruw2ZktuCPRyNq9PAsBie/rAO4DxShbkiONbQW9JT8tmNufdDaA==","signatures":[{"sig":"MEUCIDux3lMMDHbFW4XUPASMT+J5FvI0zsTr8nK7g6/YCnoYAiEAs2UTi14t//ZF4TLvN56Yxu4d3pdnTg2TPgFKShEFSgY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46182},"gitHead":"ed38778f55acfbe74ba8602ceb115ad64bc0133f","scripts":{"test":"jasmine","gen-types":"npx tsc --declaration --emitDeclarationOnly"},"typings":"types/index.d.ts","_npmUser":{"name":"hamid_sajjadi","email":"hamid.sajjadi@emarketeer.com"},"repository":{"url":"git+https://github.com/eMarketeerSE/node-spf-check.git","type":"git"},"_npmVersion":"8.19.4","description":"SPF validator","directories":{},"_nodeVersion":"20.11.1","dependencies":{"tldjs":"^2.3.1","lodash":"^4.17.11","ipaddr.js":"^1.8.1","spf-parse":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"karma":"^6.4.3","jasmine":"^3.3.1","typescript":"^5.4.2","karma-jasmine":"^5.1.0","semantic-release":"^19.0.2","jasmine-spec-reporter":"^4.2.1"},"_npmOperationalInternal":{"tmp":"tmp/spf-check_1.1.0_1711103239289_0.35379752952376675","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@emarketeer/spf-check","version":"1.1.2","keywords":["spf","dns"],"author":{"name":"eMarketeer AB","email":"dev@emarketeer.com"},"license":"MIT","_id":"@emarketeer/spf-check@1.1.2","maintainers":[{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"}],"homepage":"https://github.com/eMarketeerSE/node-spf-check#readme","bugs":{"url":"https://github.com/eMarketeerSE/node-spf-check/issues"},"dist":{"shasum":"14bc98b7ccd37748e5068625d027b23952251ece","tarball":"https://registry.npmjs.org/@emarketeer/spf-check/-/spf-check-1.1.2.tgz","fileCount":13,"integrity":"sha512-IcGg+5hweCYfqoKY6vY4VFYqrdqJSyr3/7/5tcr7poKXFcZt/u8ApeLnbrM7tC+4CTxPkY7SKCVV5u/wMVtINQ==","signatures":[{"sig":"MEUCIDdBC5NDuCZJw5Nz9s2tK+oYNzflbEKKKvRz8p12J94yAiEApmk1zVluadXNU1unCXJQX23cNiEt9M8oad3Xq+3UWX0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47631},"gitHead":"7da9d098aedd040cb9a37b669f7ebf8336641f63","scripts":{"test":"jasmine","gen-types":"npx tsc --declaration --emitDeclarationOnly"},"typings":"types/index.d.ts","_npmUser":{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"},"repository":{"url":"git+https://github.com/eMarketeerSE/node-spf-check.git","type":"git"},"_npmVersion":"8.19.4","description":"SPF validator","directories":{},"_nodeVersion":"24.18.0","dependencies":{"tldjs":"^2.3.1","lodash":"^4.17.11","ipaddr.js":"^1.8.1","spf-parse":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"karma":"^6.4.3","jasmine":"^3.3.1","typescript":"^5.4.2","karma-jasmine":"^5.1.0","semantic-release":"^19.0.2","jasmine-spec-reporter":"^4.2.1"},"_npmOperationalInternal":{"tmp":"tmp/spf-check_1.1.2_1783338142104_0.1616960853169811","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@emarketeer/spf-check","version":"1.2.0","keywords":["spf","dns"],"author":{"name":"eMarketeer AB","email":"dev@emarketeer.com"},"license":"MIT","_id":"@emarketeer/spf-check@1.2.0","maintainers":[{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"}],"homepage":"https://github.com/eMarketeerSE/node-spf-check#readme","bugs":{"url":"https://github.com/eMarketeerSE/node-spf-check/issues"},"dist":{"shasum":"a04f97030e515098a2772c51b491cbee2c9baee4","tarball":"https://registry.npmjs.org/@emarketeer/spf-check/-/spf-check-1.2.0.tgz","fileCount":13,"integrity":"sha512-p3tqEq52MOZ/znjXwTyJVx6esknDqHTD5r1XvZkTIxe1Nt3WbLpXK4UoNa3JxcFYFiL96/1rJxOgw9sadoQ/Ew==","signatures":[{"sig":"MEUCIEj1HbTPfU4eDW0O64w1nVprDcOo7FcmiAUiinfG6CHKAiEAq/CY2gN1g98NlSWcMm3dkwFxgpKLac5W/fltJNQMKXc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":49902},"gitHead":"22997e3ecf708d2b93c621567c93d03f0fb242dd","scripts":{"test":"jasmine","gen-types":"npx tsc --declaration --emitDeclarationOnly"},"typings":"types/index.d.ts","_npmUser":{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"},"repository":{"url":"git+https://github.com/eMarketeerSE/node-spf-check.git","type":"git"},"_npmVersion":"8.19.4","description":"SPF validator","directories":{},"_nodeVersion":"24.18.0","dependencies":{"tldjs":"^2.3.1","lodash":"^4.17.11","ipaddr.js":"^1.8.1","spf-parse":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"karma":"^6.4.3","jasmine":"^3.3.1","typescript":"^5.4.2","karma-jasmine":"^5.1.0","semantic-release":"^19.0.2","jasmine-spec-reporter":"^4.2.1"},"_npmOperationalInternal":{"tmp":"tmp/spf-check_1.2.0_1783343713610_0.14174065766762212","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-03-20T12:47:14.592Z","modified":"2026-08-12T15:39:09.071Z","1.0.0-beta.1":"2024-03-20T12:47:14.862Z","1.0.0-beta.2":"2024-03-20T14:00:03.389Z","1.0.0":"2024-03-20T14:10:16.451Z","1.1.0":"2024-03-22T10:27:19.421Z","1.1.2":"2026-07-06T11:42:22.244Z","1.2.0":"2026-07-06T13:15:13.750Z"},"bugs":{"url":"https://github.com/eMarketeerSE/node-spf-check/issues"},"author":{"name":"eMarketeer AB","email":"dev@emarketeer.com"},"license":"MIT","homepage":"https://github.com/eMarketeerSE/node-spf-check#readme","keywords":["spf","dns"],"repository":{"url":"git+https://github.com/eMarketeerSE/node-spf-check.git","type":"git"},"description":"SPF validator","maintainers":[{"email":"arsenii.yankovskii@gmail.com","name":"ayankovsky"},{"email":"magnus.baudin@gmail.com","name":"mbaudin"}],"readme":"# ✉️  spf-check [![Build Status](https://travis-ci.org/mediamonks/node-spf-check.svg)](https://travis-ci.org/mediamonks/node-spf-check) [![Coverage Status](https://coveralls.io/repos/github/mediamonks/node-spf-check/badge.svg)](https://coveralls.io/github/mediamonks/node-spf-check)\n\n_This is a fork from [mediamonks/node-spf-check](https://github.com/mediamonks/node-spf-check)_\n\n[RFC4408]: https://tools.ietf.org/html/rfc4408\n[RFC4408-2.5]: https://tools.ietf.org/html/rfc4408#section-2.5\n\nImplements [RFC4408] Sender Policy Framework (SPF) `check_host()` validation.\n\n## Install\n\n    yarn add spf-check\n\n## Usage\n\nThe stable API returns a string with one of the [possible returns][RFC4408-2.5].\n\n```js\nconst spf = require('spf-check');\nconst result = spf(ip, domain, sender);\n\nif (result === spf.Pass) {\n    // Yay!\n}\n```\n\n## API\n\nThis module also exports `SPF` and `SPFResult` classes to allow inspect the\nresult and read the expected message.\n\n```js\nconst validator = new spf.SPF('mediamonks.com', 'info@mediamonks.com');\n\nvalidator.check('185.16.22.2').then(result => {\n    assert(result instanceof spf.SPFResult);\n\n    if (result.result !== spf.Pass || result.result !== spf.Neutral) {\n        console.error(result.message);\n    }\n});\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}