2 releases

0.1.2 Oct 29, 2022
0.1.1 Oct 29, 2022
0.1.0 Oct 29, 2022

#668 in Configuration

49 downloads per month
Used in turntable

Apache-2.0

8KB
182 lines

validate_package_name

This crate validates an npm package name.

Example

use validate_package_name::validate;

assert!(validate(&String::from("hello")).is_ok())
assert!(validate(&String::from("hi!")).is_err())

License

Apache License 2.0

Dependencies

~2.2–3MB
~54K SLoC