#automation
#best-practices
#document-conversion
#future
#optimization
#prompt-engineering
#write
#markdown
copy(
$$('table[aria-labelledby="version-history"] tbody tr')
.map((tr) => {
const a = tr.querySelector("a");
const date = new Date(tr.querySelector("time").getAttribute("datetime")).toLocaleDateString("en-GB", {
day: "numeric",
month: "short",
year: "numeric",
});
return `- [${a.textContent.trim()}](https://npmjs.com${a.getAttribute("href")}): ${date}.`;
})
.join("\n")
);