Last active
January 22, 2021 19:31
-
-
Save Narigo/1c03673572bf44fb7bbad81535dc2ea0 to your computer and use it in GitHub Desktop.
Find #Figma plugins with a high like-to-install ratio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find #Figma plugin underdogs | |
curl https://raw.githubusercontent.com/yuanqing/figma-plugins-stats/gh-pages/index.json > d.json | |
node <<'EOF'|head -n 50 | |
let d = require("./d.json"); | |
let r = (p) => p.likeCount / p.installCount; | |
d.plugins | |
.sort((a, b) => r(b) - r(a)) | |
.forEach((p, i) => console.log(`${i + 1}. ${p.name} by ${p.publisherName}`)); | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for copy and pasting into the browser console 😄 (open a new tab to paste it, otherwise fetch might complain) | |
fetch("https://yuanqing.github.io/figma-plugins-stats/index.json") | |
.then((r) => r.json()) | |
.then((d) => { | |
let r = (p) => p.likeCount / p.installCount; | |
d.plugins | |
.sort((a, b) => r(b) - r(a)) | |
.slice(0, 50) | |
.forEach((p, i) => | |
console.log(`${i + 1}. ${p.name} by ${p.publisherName}`) | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment