normalize-email-or-url

2.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i normalize-email-or-url

Weekly Downloads

11

Version

2.0.1

License

AGPL-3.0

Unpacked Size

6.11 kB

Total Files

6

Last publish

Collaborators

  • millette