<% if (!packages.length) { %>
Can not found package match <%= keyword %>. You can
SYNC from official npm registry or
SEARCH in official npm website.
<% } else if (!match) { %>
Can not found package <%= keyword %>. You can
SYNC from official npm registry or
SEARCH in official npm website.
<% } %>
<% if (packages.length) { %>
Packages match "<%= keyword %>"
<% if (match) { %>
<% } %>
<% for (var i = 0; i < packages.length; i++) {
var item = packages[i];
if (item.name === keyword) {
continue;
}
%>
<% } %>
<% } %>
<% if (keywords.length) { %>
Keywords match "<%= keyword %>"
<% for (var i = 0; i < keywords.length; i++) {
var item = keywords[i];
%>
<% } %>
<% } %>