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

🧩 Updated the plugins page #18

Merged
merged 12 commits into from
Jul 2, 2023
Prev Previous commit
Next Next commit
Created the StoreItem util.js
  • Loading branch information
gnmyt committed Jul 2, 2023
commit 01a792af986a59d2929d78823ad947a91977d7f0
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const prettyDownloadCount = (count) => {
if (count < 1000) return count;
if (count < 1000000) return (count / 1000).toFixed(1) + "K";
return (count / 1000000).toFixed(1) + "M";
}