Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
feat: show tarball url on package page (#894)
Browse files Browse the repository at this point in the history
closes #893
  • Loading branch information
fengmk2 committed Apr 15, 2016
1 parent 576397b commit e699850
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions view/web/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
<% if (!package._publish_on_cnpm) { %>
<a href="https://www.npmjs.org/package/<%= package.name %>" target="_blank">Original npm</a>
<% } %>

<% if (package.dist.tarball) { %>
&middot;
<a href="<%= package.dist.tarball %>" target="_blank">Tarball</a>
<% } %>
</div>
<div class="pack-install">
<pre class="sh">$ <%- config.npmClientName %> install <%= package.name %> <% if (package.preferGlobal) { %>-g<% } %></pre>
Expand Down

0 comments on commit e699850

Please sign in to comment.