Javascript implementation of the ABNF from RFC-3986 to allow validation of parts of the specification.
$ npm install rfc-3986
var rfc3986 = require('rfc-3986')
This is an object which has various properties containing regular expressions matching parts of the specification.
Matches the CIDR part of an IP address, matches numbers 0-32.
Matches an IPv4 address.
Matches an IPv6 address.
Matches an IPvFuture address.
Matches an IPLiteral which is either an IPv4, IPv6, or IPvFuture.
Matches the scheme part of the URI.
Matches the hierarchial part of the URI which identifies the authority (domain/ip address) and the path.
Matches the query part of a URI which contains the query parameters and the ?
delimiter.
Matches the fragment part of a URI which contains the hash value.
Matches a URI which conforms to RFC-3986.