#url #packages #someone

is-url

A rust library to check if a string is an URL

5 stable releases

1.0.4 Feb 12, 2022
1.0.2 Feb 11, 2022

#1 in #someone

Download history 44/week @ 2024-01-08 262/week @ 2024-01-15 4/week @ 2024-01-22 31/week @ 2024-01-29 49/week @ 2024-02-26 33/week @ 2024-03-04 45/week @ 2024-03-11 45/week @ 2024-03-18 20/week @ 2024-03-25

145 downloads per month
Used in 2 crates

MIT license

4KB

is-url

A rust library to check if a string is an URL

Installation

In your Cargo.toml add the following line after the dependencies field.

is-url = "1.0.4"

Usage

This is an example usage someone might do.


use is_url::is_url;

fn main() {
  println!("{}", is_url("https://crates.io")) // true
}

Dependencies

~2.1–3MB
~53K SLoC