Package | Star |
---|---|
styled-components | 9962 |
react-native-web | 6091 |
radium | 5636 |
react-css-modules | 4033 |
aphrodite | 3478 |
glamor | 2565 |
glamorous | 2381 |
styletron-react | 2132 |
css-loader | 2082 |
styled-jsx | 1986 |
react-style | 1678 |
jsxstyle | 1661 |
emotion | 1581 |
typestyle | 1485 |
reactcss | 1462 |
cssx-loader | 979 |
react-css-components | 659 |
react-look | 604 |
react-jss | 576 |
csjs | 485 |
react-inline | 448 |
babel-plugin-css-in-js | 233 |
stilr | 230 |
cssobj | 200 |
react-styleable | 183 |
react-inline-css | 155 |
j2c | 145 |
es-css-modules | 133 |
styling | 131 |
react-free-style | 109 |
uranium | 101 |
css-ns | 92 |
linaria | 81 |
css-constructor | 78 |
smart-css | 74 |
style-it | 65 |
react-theme | 60 |
react-cxs | 59 |
hyperstyles | 53 |
react-cssom | 47 |
restyles | 42 |
react-inline-style | 41 |
react-styl | 40 |
bloody-react-styled | 34 |
superstyle | 28 |
react-statics-styles | 23 |
pre-style | 21 |
scope-styles | 20 |
classy | 20 |
react-css-builder | 19 |
stile | 18 |
react-vstyle | 17 |
react-stylematic | 16 |
babel-plugin-pre-style | 3 |
i-css | 1 |
Last active
September 30, 2018 23:19
-
-
Save yesmeck/8d9cc14275b0d7b33dbd2c22f9f50beb to your computer and use it in GitHub Desktop.
css in js lib stars
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
const fs = require('fs'); | |
const request = require('superagent'); | |
const content = fs.readFileSync('./README.md').toString(); | |
const matches = content.match(/\|\s+\[.+?\]\(.+?\)\s+\|/g); | |
const token = '26010ba7569034ff9ce5913d5c15b5f233cf3c0c'; | |
let list = []; | |
Promise.all(matches.map(line => { | |
const [_, name, url] = line.match(/\[(.+?)\]\((.+?)\)/); | |
const repo = url.match(/github.com\/(.+)/)[1]; | |
return new Promise(resolve => { | |
request | |
.get(`https://api.github.com/repos/${repo}`) | |
.set('Authorization', 'Basic xxx') | |
.end((err, res) => { | |
list.push({ | |
name, | |
url, | |
stargazers_count: res.body.stargazers_count, | |
}); | |
resolve(); | |
}); | |
}) | |
})).then(() => { | |
list = list.sort((a, b) => b.stargazers_count - a.stargazers_count); | |
console.log(list.slice(0, 10)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment