Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-uri

kikobeats126.3kMIT1.2.7TypeScript support: definitely-typed

Determinate if a string is a valid URI.

invalid, is, parse, uri, valid

readme

is-uri

Last version Coverage Status NPM Status

Determinate if a string is a valid URI. Based in uri but works out of the box and improved.

Install

$ npm install is-uri --save

Usage

var isUri = require('is-uri')
isUri('http://google.com') //=> true

API

isUri(str, [options])

options are passed to parse-uri module.

  • parse-uri – Lightweight module for parse an URI.

License

MIT © Kiko Beats