pub fn version_req(spec: &str) -> Result<VersionReq, Error>Expand description
npm-faithful version → VersionReq: a bare full version (1.2.3) is an exact pin
(=1.2.3); *, empty, x, and latest mean any; range syntax (^, ~, >=, …) parses
as written, within what the Rust semver crate accepts (comma-separated comparators; npm’s
space-separated and || ranges are not supported).