#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 27/week @ 2024-09-11 32/week @ 2024-09-18 53/week @ 2024-09-25 23/week @ 2024-10-02 19/week @ 2024-10-09 80/week @ 2024-10-16 56/week @ 2024-10-23 47/week @ 2024-10-30 21/week @ 2024-11-06 9/week @ 2024-11-13 22/week @ 2024-11-20 83/week @ 2024-11-27 32/week @ 2024-12-04 90/week @ 2024-12-11 29/week @ 2024-12-18 1/week @ 2024-12-25

161 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