-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
50 lines (50 loc) · 1.94 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<meta charset="utf-8">
<title>npmhub • Browser extension for GitHub and npm</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A browser extension for exploring npm dependencies on GitHub repos.">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,700">
<header>
<img src="images/npm-octocat.png">
</header>
<section>
<div id="content">
<h2>Find out what npm modules the cool kids are using.</h2>
<p>npmhub is a browser extension that helps you discover new npm modules while browsing
github.com. It notices when you’re browsing a repo with a package.json in it. If there are any <code>dependencies</code>
or <code>devDependencies</code> listed therein, npmhub fetches each module’s metadata from the npm registry and
displays it right on the GitHub page, just below the README. Here’s an example:
</p>
<noscript>
<img class="screenshot" src="images/chrome.png">
</noscript>
<script>
var browser = 'chrome';
if (navigator.userAgent.indexOf('Chrome') > 0) {
// Intentionally left empty
} else if (navigator.userAgent.indexOf('Safari') > 0) {
browser = 'safari';
} else if (navigator.userAgent.indexOf('Firefox') > 0) {
browser = 'firefox';
}
document.write('<img class="screenshot" src="images/' + browser + '.png">')
</script>
<div class="footer">
<p class="spacey">
<a class="button" href="https://chrome.google.com/webstore/detail/npmhub/kbbbjimdjbjclaebffknlabpogocablj">
For Google Chrome
</a>
<a class="button" href="https://addons.mozilla.org/en-US/firefox/addon/npm-hub/">
For Firefox
</a>
<a class="button" href="https://apps.apple.com/app/npmhub/id1542090429">
For Safari
</a>
</p>
<p>
npmhub is a free and <a href="https://github.com/npmhub/npmhub">open source</a> project.
</p>
</div>
</div>
</section>