Skip to content

Commit 441c1df

Browse files
committed
fix(badges): add packagephobia badge from badgen
1 parent 6ed21f5 commit 441c1df

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/generators/badges.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const badgeProviders = <Record<string, BadgeProvider>>{
4242
npmVersion: "https://img.shields.io/npm/v/{name}",
4343
npmDownloads: "https://img.shields.io/npm/dm/{name}",
4444
bundlephobia: "https://img.shields.io/bundlephobia/minzip/{name}",
45-
packagephobia: false, // https://github.com/badges/shields/issues/1701
45+
packagephobia: "https://badgen.net/packagephobia/install/{name}", // https://github.com/badges/shields/issues/1701
4646
bundlejs: "https://img.shields.io/bundlejs/size/{name}",
4747
codecov: "https://img.shields.io/codecov/c/gh/{github}",
4848
license: "https://img.shields.io/github/license/{github}",
@@ -53,7 +53,7 @@ const badgeProviders = <Record<string, BadgeProvider>>{
5353
npmDownloads: "https://flat.badgen.net/npm/dm/{name}",
5454
bundlephobia: "https://flat.badgen.net/bundlephobia/minzip/{name}",
5555
bundlejs: false, // https://github.com/badgen/badgen/issues/82
56-
packagephobia: "https://flat.badgen.net/packagephobia/publish/{name}",
56+
packagephobia: "https://flat.badgen.net/packagephobia/install/{name}",
5757
codecov: "https://flat.badgen.net/codecov/c/github/{github}",
5858
license: "https://flat.badgen.net/github/license/{github}",
5959
},
@@ -62,7 +62,7 @@ const badgeProviders = <Record<string, BadgeProvider>>{
6262
npmDownloads: "https://badgen.net/npm/dm/{name}",
6363
bundlephobia: "https://badgen.net/bundlephobia/minzip/{name}",
6464
bundlejs: false, // https://github.com/badgen/badgen/issues/82
65-
packagephobia: "https://badgen.net/packagephobia/publish/{name}",
65+
packagephobia: "https://badgen.net/packagephobia/install/{name}",
6666
codecov: "https://badgen.net/codecov/c/github/{github}",
6767
license: "https://badgen.net/github/license/{github}",
6868
},

test/fixture/OUTPUT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
[![npm version](https://img.shields.io/npm/v/automd)](https://npmjs.com/package/automd)
88
[![npm downloads](https://img.shields.io/npm/dm/automd)](https://npm.chart.dev/automd)
99
[![bundle size](https://img.shields.io/bundlephobia/minzip/automd)](https://bundlephobia.com/package/automd)
10+
[![install size](https://badgen.net/packagephobia/install/automd)](https://packagephobia.com/result?p=automd)
1011

1112
<!-- /automd -->
1213

0 commit comments

Comments
 (0)