Skip to content

Instantly share code, notes, and snippets.

@pankajpatel
Last active December 3, 2021 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pankajpatel/2355c2801eca854efb0588f08487ed38 to your computer and use it in GitHub Desktop.
Save pankajpatel/2355c2801eca854efb0588f08487ed38 to your computer and use it in GitHub Desktop.
[package-of-the-day] list extract from feedhive.io #js
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