2.0.1 • Published 3 years ago

normalize-email-or-url v2.0.1

Weekly downloads
6
License
AGPL-3.0
Repository
github
Last release
3 years ago

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
2.0.1

3 years ago

2.0.0

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

6 years ago

0.0.1

6 years ago