Skip to content

Commit

Permalink
npm: add packagephobia link
Browse files Browse the repository at this point in the history
  • Loading branch information
avindra committed Oct 11, 2021
1 parent 2caf997 commit 813bf74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion npmjs.com/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ if (pkg) {
const bp = document.createElement('a');
bp.href = `https://bundlephobia.com/package/${pkg.textContent}`;
bp.textContent = 'Bundlephobia';
pkg.append(bp);
pkg.parentNode.append(bp);


const pp = document.createElement('a');
pp.href = `https://packagephobia.com/result?p=${pkg.textContent}`;
pp.textContent = 'Packagephobia';
pkg.parentNode.append(pp);
}

0 comments on commit 813bf74

Please sign in to comment.