Skip to content

millette/normalize-email-or-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

normalize-email-or-url

Return normalized email or url from a string.

Installation

npm install normalize-email-or-url --save

or

yarn add normalize-email-or-url

Usage

const norm = require('normalize-email-or-url')

const { url, error } = norm('example.com')
// => url = http://example.com

const { email, error } = norm('joe@example.com')
// => email = joe@example.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published