class NpmMetadataUtils {

  @Nullable
  public static DateTime lastModified(final NestedAttributesMap packageRoot) {
    final NestedAttributesMap time = packageRoot.child(TIME);
    final String modified = time.get(MODIFIED, String.class);
    if (modified != null) {
      return NPM_TIMESTAMP_FORMAT.parseDateTime(modified);
    }
    return null;
  }

  private  NpmMetadataUtils();

}