{"id":22243052,"url":"https://github.com/mediamonks/node-spf-check","last_synced_at":"2025-07-28T01:32:19.645Z","repository":{"id":47996260,"uuid":"162982473","full_name":"mediamonks/node-spf-check","owner":"mediamonks","description":"SPF validator","archived":false,"fork":false,"pushed_at":"2021-08-11T05:24:21.000Z","size":138,"stargazers_count":8,"open_issues_count":6,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-14T22:12:38.225Z","etag":null,"topics":["dns","nodejs","spf"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mediamonks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-24T11:12:26.000Z","updated_at":"2022-09-01T14:18:32.000Z","dependencies_parsed_at":"2022-08-12T16:10:59.451Z","dependency_job_id":null,"html_url":"https://github.com/mediamonks/node-spf-check","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediamonks%2Fnode-spf-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediamonks%2Fnode-spf-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediamonks%2Fnode-spf-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mediamonks%2Fnode-spf-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mediamonks","download_url":"https://codeload.github.com/mediamonks/node-spf-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227851145,"owners_count":17829292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns","nodejs","spf"],"created_at":"2024-12-03T04:20:04.468Z","updated_at":"2024-12-03T04:20:05.566Z","avatar_url":"https://github.com/mediamonks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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[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 =\u003e {\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 © [MediaMonks](https://www.mediamonks.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediamonks%2Fnode-spf-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmediamonks%2Fnode-spf-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediamonks%2Fnode-spf-check/lists"}