class NpmMetadataUtils {

  @Nonnull
  public static String extractTarballName(final String tarballUrl) {
    int idx = tarballUrl.lastIndexOf('/');
    if (idx != -1) {
      return tarballUrl.substring(idx + 1);
    }
    else {
      return tarballUrl;
    }
  }

  private  NpmMetadataUtils();

}