valid-url
URI validation functions
Last updated 6 years ago by odysseas .
Repository · Original npm · Tarball · package.json
$ cnpm install valid-url 
SYNC missed versions from official npm registry.

URI validation functions

Build Status

Synopsis

Replicates the functionality of http://search.cpan.org/~sonnen/Data-Validate-URI-0.01/lib/Data/Validate/URI.pm (http://anonscm.debian.org/gitweb/?p=users/dom/libdata-validate-uri-perl.git ) into a nodejs module.

#Description

Installation

*fork it to install
*TODO: need add to npm

Usage

var validUrl = require('validUrl');

Methods

is_uri(value)
accepts value as string to be checked as any protocol url
returns undefined if is not url, returns RFC 3986 url if valid

is_http_uri(value, allowHttps)
accepts value as string to be checked as HTTP url, allowHttps as boolean to include https urls (optional)
returns undefined if is not url, returns RFC 3986 url if valid

is_https_uri(value)
accepts value as string to be checked as HTTPS url
returns undefined if is not url, returns RFC 3986 url if valid

is_web_uri(value)
accepts value as string to be checked as HTTP or HTTPS url
returns undefined if is not url, returns RFC 3986 url if valid

Current Tags

  • 1.0.9                                ...           latest (6 years ago)

9 Versions

  • 1.0.9                                ...           6 years ago
  • 1.0.8                                ...           6 years ago
  • 1.0.7                                ...           6 years ago
  • 1.0.6                                ...           6 years ago
  • 1.0.5                                ...           6 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
Maintainers (2)
Downloads
Today 130
This Week 1,443
This Month 3,519
Last Day 317
Last Week 1,964
Last Month 8,517
Dependencies (0)
None
Dev Dependencies (2)
Dependents (643)

Copyright 2014 - 2016 © taobao.org |