Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundlephobia: dependency-count and tree-shaking badges #428

Merged
merged 4 commits into from
Sep 8, 2020

Conversation

omgovich
Copy link

@omgovich omgovich commented Sep 6, 2020

Hi! Love your project and use it quite often.

My hobby is creating tiny libraries and I know many people who need badges to promote that their JS-libraries have no dependencies (or have few of them). Also tagging a project as side-effect-free/tree-shakable would be very helpful for developers.

Example: pastelsky/bundlephobia#224

So I decided to create a small PR to add these badges.
They get data from the bundlephobia's API that you already use, so it's actually not a big deal.
image

@vercel
Copy link

vercel bot commented Sep 8, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/badgen/badgennet/kuai6um1p
✅ Preview: https://badgennet-git-fork-omgovich-feature-tree-shaking-a-f7298a.badgen.vercel.app

Copy link
Member

@amio amio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just a trivial change

api/bundlephobia.ts Outdated Show resolved Hide resolved
Co-authored-by: Amio Jin <amio.cn@gmail.com>
@amio
Copy link
Member

amio commented Sep 8, 2020

Thanks! @omgovich

@amio amio merged commit cb3dee8 into badgen:master Sep 8, 2020
@omgovich omgovich deleted the feature/tree-shaking-and-deps-coount branch September 8, 2020 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants