is.uri
v1.0.0
Published
verifies if a given string is a valid Uniform Resource Identifier
Downloads
7
Readme
is.uri
verifies if a given string is a valid Uniform Resource Identifier
NOTE: currently doesn't support URNs
api
const isUri = require('is.uri')
isUri(some_string) - returns a boolean
example
const isUri = require('is.uri')
isUri('https://example.org/absolute/URI/with/absolute/path/to/res.txt')
// return true