Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: valid-url
node v8.17.0
version:
1.0.0
endpoint
share
tweet
var validUrl = require("valid-url") console.log("1", validUrl.isWebUri("http//hey.com")) console.log("2", validUrl.isWebUri("https//hey.com")) console.log("3", validUrl.isWebUri("http://hey.com")) console.log("4", validUrl.isWebUri("https://hey.com")) console.log("5", validUrl.isWebUri("http://hey.com?")) console.log("6", validUrl.isWebUri("https://hey.com?")) console.log("7", validUrl.isWebUri("http://hey.com/bar?foo")) console.log("8", validUrl.isWebUri("https://hey.com/bar?foo"))
Created from: https://npm.runkit.com/valid-url
Loading…
no comments
sign in
to comment