Skip to content

cijiugechu/valid_npm_name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

valid_npm_name

Cargo Documentation

Check whether a package name is a valid npm package name.

Usage

use valid_npm_name::ValidName;

let foo = ValidName::parse("foo").unwrap();
assert_eq!("foo", foo.to_string());

let bar_name = ValidName::parse("bar").unwrap();
let bar = bar_name.as_ref();
assert_eq!("bar", bar);

let baz = ValidName::parse("baz").unwrap();
assert_eq!("baz", baz.as_str());

About

Check whether a package name is a valid npm package name

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages