lURL
A simple JavaScript library to check if a URL is legal against the RFC standards.
lURL is available through an installation from npm lurl
npm install lurl
Or it can also be downloaded from source and used in the browser lurl
Node usage
var lurl = require('lurl');
if (lurl(url)) {
// legal URL
}
else {
// invalid URL
}