pub fn extract_package_name(specifier: &str) -> String
Extract the npm package name from a specifier. @scope/pkg/foo/bar -> @scope/pkg lodash/merge -> lodash
@scope/pkg/foo/bar
@scope/pkg
lodash/merge
lodash