is-valid-url

A simple package to know if a string has a proper URL format

Usage no npm install needed!

<script type="module">
  import isValidUrl from 'https://cdn.skypack.dev/is-valid-url';
</script>

README

is-valid-url

NPM

A simple package to let you know if a string has a proper URL format.

It works nicely with TypeScript.

It exposes a isUrl function that will let you know if the argument is a URL or not.