New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rfc-822

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rfc-822

  • 0.4.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

h1. RFC822

RFC822 compatible email validation and MX record check.

h2. Features

  • Ruby 1.9, 2.0 & 2.1 compatible
  • MRI, JRuby and Rubinius compatible
  • Email validation
  • MX checks (requires 'host' command line application)

h2. Installation

h6. Download from GitHub

bc. wget http://github.com/dim/rfc-822/tarball/master

h6. As a GEM

bc. gem install rfc-822

h6. Clone from GitHub

bc. git clone git://github.com/dim/rfc-822.git

h6. As a Rails plugin

bc. ruby script/plugin install git://github.com/dim/rfc-822.git

h2. Usage Examples

bc. validates_format_of :email, :with => RFC822::EMAIL

bc. "user@example.com" =~ RFC822::EMAIL ? puts("Email is valid.") : puts("Email is invalid")

bc. RFC822.mx_records('user@mail.com') # => [#]

h2. License

Please see LICENSE document

h2. Acknowledgements

  • Inspired by previous work of Cal Henderson, Tim Fletcher and Dan Kubb.

FAQs

Package last updated on 08 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc