code: function getPackageInfoFrom(string) {
    if (string[0] === '@') {
      const [scope, rawName] = string.split('/');
      const { name, version } = getVersionFromString(rawName);
      return {
        name: `${scope}/${name}`,
        version,
      };
    }
  
    return getVersionFromString(string);
  }
docs: some-package some-package@next @foo/some-package @foo/some-package@next