Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

RunKit + npm: valid-url

node v8.17.0
version: 1.0.0
endpointsharetweet
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