Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Signoff will validate and ensure your email inputs are rigorously RFC compliant without the excess.
Signoff will validate and ensure your email inputs are rigorously RFC compliant without the excess.
string
)var signoff = require('signoff');
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.
With npm do
$ npm install signoff
(MIT)
Copyright (c) 2024 David H. <email6@gmail.com>
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.
FAQs
Signoff will validate and ensure your email inputs are rigorously RFC compliant without the excess.
We found that signoff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.