hasDropReachedDownloadLimit (drop-list-utils)

anon.li · files, download-limit, rate-limiting

Checks if a drop's download count has met or exceeded an optional maximum limit, used to enforce download caps.

function hasDropReachedDownloadLimit(downloads: number, maxDownloads: number | null) {
  return maxDownloads !== null && downloads >= maxDownloads;
}

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key