signoff
v1.0.2
Published
Signoff will validate and ensure your email inputs are rigorously RFC compliant without the excess.
Downloads
210
Maintainers
Readme
Signoff
Signoff will validate and ensure your email inputs are rigorously RFC compliant without the excess.
API
signoff(string
)
var signoff = require('signoff');
Notes
With a plethora of email validation utilities available it's remarkable how many fail to fully adhere to the relevant RFC specifications, neglect to accommodate valid formatting idiosyncrasies such as domain literals and quoted strings, are superfluously laden with excess code or suffer from all of these issues concurrently. Signoff distinguishes itself by meticulously addressing these common pitfalls, testing entries against a series of rigorous criteria derived from all the pertaining RFC specifications and providing a robust solution. It tests the length and structure of the entry against RFC 5321 and RFC 5322, scrutinizes the handle in accordance with RFC 5321 accounting for quoted strings while adhering to RFC 5322, and inspects the domain through the lens of RFC 1035 in consideration for domain literals, honoring both IPv4 and IPv6 formats, following §4.1.2 of RFC 5321 and RFC 4291, respectively.
Installation
With npm do
$ npm install signoff
License
(MIT)
Copyright (c) 2024 David H. <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.