如何实现一个简单的 github 降价徽章来显示每月下载

How to implement a simple github markdown badge to show monthly download

如标题所示,我想要一个徽章,比方说,这个 repo

查找online,我发现,例如,这个:

[![npm](https://img.shields.io/npm/dm/localeval.svg)]()

我尝试了所有可能的嵌入方式 [![npm](https://img.shields.io/npm/dm/kotlin-graphics/kotlin-unsigned.svg)]()

但我总是无效或 0(这不可能是因为我看到了 github 统计数据)

我错过了什么?

您 URL 中的 npm 代表 Node 包管理器,这不是您想要的。 使用 URL 代替 Github:

总下载量: [![Github Downloads (total)](https://img.shields.io/github/downloads/kotlin-graphics/kotlin-unsigned/total.svg)]()

不幸的是,像这样的每月下载量似乎无法获得徽章。但也许您想显示最新版本的下载计数:

[![Github Downloads (monthly)](https://img.shields.io/github/downloads/kotlin-graphics/kotlin-unsigned/latest/total.svg)]()