Skip to content

Commit

Permalink
npmjs: reflect new package name dom
Browse files Browse the repository at this point in the history
  • Loading branch information
avindra committed Oct 24, 2024
1 parent 32d6b72 commit b1f3e3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion npmjs.com/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`],
Expand Down

0 comments on commit b1f3e3d

Please sign in to comment.