#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

#2 in #someone

Download history 45/week @ 2024-03-11 45/week @ 2024-03-18 6/week @ 2024-03-25 124/week @ 2024-04-01 24/week @ 2024-04-08 48/week @ 2024-04-15 21/week @ 2024-04-22 45/week @ 2024-04-29 59/week @ 2024-05-06 17/week @ 2024-05-13 22/week @ 2024-05-20 81/week @ 2024-05-27 81/week @ 2024-06-03 59/week @ 2024-06-10 191/week @ 2024-06-17 121/week @ 2024-06-24

457 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–3MB
~53K SLoC