Created
July 12, 2017 22:33
-
-
Save nbluis/cfc4231e5ea26d0032fb05346cf3681f to your computer and use it in GitHub Desktop.
Extract only top-trends from https://github.com/jondot/awesome-react-native
This file contains hidden or 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
| Array.from(document.querySelectorAll('.markdown-body li a')) | |
| .map((el) => el.textContent.match(/.*\★(\d+)$/)) | |
| .filter((match) => match) | |
| .filter((match) => parseInt(match[1]) > 500) | |
| .sort((m1, m2) => parseInt(m2[1]) - parseInt(m1[1])) | |
| .map((match) => match[0]) | |
| .forEach((entry) => console.log(entry)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment