KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
node-spf-check
★ 8
Open GitHub ↗
SPF validator
Download README (.md)
Explore Similar Repositories
pc-setup-and-dotfiles
:
A collection of my dotfiles and PC setup as ansible roles
jbme10
:
Jailbreakme for iOS 10 based on totally-not-spyware
Dynamo-for-Revit
:
Dynamo and Python for Revit
react-demo
:
一个react 小项目
ggit
:
Glance at Git Repositories
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
node-spf-check
?
Download (.md)
# ✉️ spf-check [](https://travis-ci.org/mediamonks/node-spf-check) [](https://coveralls.io/github/mediamonks/node-spf-check) [RFC4408]: https://tools.ietf.org/html/rfc4408 [RFC4408-2.5]: https://tools.ietf.org/html/rfc4408#section-2.5 Implements [RFC4408] Sender Policy Framework (SPF) `check_host()` validation. ## Install yarn add spf-check ## Usage The stable API returns a string with one of the [possible returns][RFC4408-2.5]. ```js const spf = require('spf-check'); const result = spf(ip, domain, sender); if (result === spf.Pass) { // Yay! } ``` ## API This module also exports `SPF` and `SPFResult` classes to allow inspect the result and read the expected message. ```js const validator = new spf.SPF('mediamonks.com', 'info@mediamonks.com'); validator.check('185.16.22.2').then(result => { assert(result instanceof spf.SPFResult); if (result.result !== spf.Pass || result.result !== spf.Neutral) { console.error(result.message); } }); ``` ## License MIT © [MediaMonks](https://www.mediamonks.com/)