pub fn parse_package_spec(input: &str) -> Result<PackageSource, PackageError>Expand description
Parses one package spec string into a PackageSource.
Accepted forms:
npm:@scope/pkg,npm:@scope/pkg@1.2.3,npm:pkggit:github.com/user/repo[@ref],git:git@host:user/repo[@ref],git:<protocol-url>[@ref]- protocol URLs without prefix:
https://,http://,ssh://,git:// - local paths: absolute,
./relative,../relative,~/path