diff --git a/npmjs.com/index.js b/npmjs.com/index.js index 7551363..5ae874d 100644 --- a/npmjs.com/index.js +++ b/npmjs.com/index.js @@ -13,8 +13,10 @@ const listItem = (text, href) => { }; if (repos) { - const pkg = document.querySelector("#top h1 span").textContent; + const pkg = document.querySelector("main h2 span").textContent; + const sites = [ + ["Bundlephobia", `https://bundlephobia.com/package/${pkg}`], ["anvaka", `https://npm.anvaka.com/#/view/2d/${pkg}`], ["npmgraph", `https://npmgraph.js.org/?q=${pkg}`],