Last active
December 3, 2021 23:30
-
-
Save pankajpatel/2355c2801eca854efb0588f08487ed38 to your computer and use it in GitHub Desktop.
[package-of-the-day] list extract from feedhive.io #js
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
copy( | |
[...document.querySelectorAll('tr.css-ds3kc > td:nth-child(2)')] | |
.map(i => i.innerText) | |
.map(t => t.replace('📦 Package of the Day ', '')) | |
.map(t => t.replace(' #100DaysOfCode', '')) | |
.map(t => t.replace(' npmjs.com', '###')) | |
.map(t => t.replace(/(###)[\w\/\.\s\-,\(\)'\@<“”"\&]*/ig, '')) | |
.join('\n') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment