1.1.1 • Published 10 years ago

valid_url v1.1.1

Weekly downloads
49
License
MIT
Repository
github
Last release
10 years ago

Valid_url

Checks if a given string is a url. This package is used by me to look for links in user imputs like many chats or apps.

Some accepted combinatios are:

http://domain.any
https://domain.any
http://www.domain.any
https://www.domain.any
ftp://test@example.com
api.example.com

Note that emails are also works as links for the purpose of this package

Installation

npm install valid_url

Usage

var checkUrl = require('valid_url');
checkUrl("yabirgb.com")

Changelog

1.1.1

Fixed minor errors in regex

1.0.4

Initial package

License

MIT

1.1.1

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago