Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hapi/address

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/address

Email address and domain validation

  • 3.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is @hapi/address?

The @hapi/address package is a utility library developed as part of the hapi.js framework. It is primarily used for validating and manipulating email and domain addresses. It provides robust validation techniques, ensuring that email and domain inputs conform to standards and are valid for use in various applications.

What are @hapi/address's main functionalities?

Email Validation

This feature allows developers to validate email addresses to ensure they meet specific criteria for a valid email format. The code sample demonstrates how to validate an email address using the isValid method.

const Address = require('@hapi/address');
const email = 'example@example.com';
const result = Address.email.isValid(email);
console.log(result); // outputs: true

Domain Validation

This feature enables the validation of domain names to ensure they are correctly formatted and valid. The code sample shows how to check the validity of a domain using the isValid method.

const Address = require('@hapi/address');
const domain = 'example.com';
const result = Address.domain.isValid(domain);
console.log(result); // outputs: true

Other packages similar to @hapi/address

Keywords

FAQs

Package last updated on 16 Oct 2019

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