#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 46/week @ 2024-07-22 42/week @ 2024-07-29 36/week @ 2024-08-05 49/week @ 2024-08-12 48/week @ 2024-08-19 25/week @ 2024-08-26 16/week @ 2024-09-02 31/week @ 2024-09-09 15/week @ 2024-09-16 64/week @ 2024-09-23 33/week @ 2024-09-30 1/week @ 2024-10-07 67/week @ 2024-10-14 80/week @ 2024-10-21 25/week @ 2024-10-28 49/week @ 2024-11-04

221 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
~54K SLoC