Generate your metrics that you can embed everywhere, including your GitHub profile readme! It works for both user and organization accounts, and even for repositories!
<% if (/[.]0-beta$/.test(packaged.version)) { %>
*⚠️ This is the documentation of **v<%= packaged.version.replace(/[.]0-beta$/, "") %>-beta** (`@master` branch) which includes [unreleased features](https://github.com/lowlighter/metrics/compare/latest...master), see documentation of **v<%= (Number(packaged.version.replace(/[.]0-beta$/, ""))-0.1).toFixed(1) %>** (`@latest` branch) [here](https://github.com/lowlighter/metrics/blob/latest/README.md).*
<% } %>
| For user accounts |
For organization accounts |
<%- plugins.base.readme.demo?.replace(/
<% {
let cell = 0
const elements = Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key)))
%>
And you can customize these heavily with plugins, templates and hundreds of options!
|
🧩 <%= elements.length %> plugins
|
<% if (elements.length%2)
elements.push(["", {readme:{demo:`![]() | `}}])
for (let i = 0; i < elements.length; i+=2) {
const cells = [["even", elements[i]], ["odd", elements[i+1]]]
for (const [cell, [plugin, {name, readme}]] of cells) {
if (cell === "even") {
-%>
<% } %> | <%= name -%> |
<% if (cell === "odd") {
-%>
<% }}
for (const [cell, [plugin, {name, readme}]] of cells) {
if (cell === "even") {
-%>
<% } %> <%- readme.demo.replace(/
i ? ` ${x}` : x)?.join("\n") %>
<% if (cell === "odd") {
-%>
<% }}} -%>
|
More to come soon!
|
<% } %>
<% {
let cell = 0
const elements = Object.entries(templates).filter(([key, value]) => (value)&&(!["community"].includes(key)))
%>
|
🖼️ <%= elements.length %>+ templates
|
<% if (elements.length%2)
elements.push(["", {readme:{demo:`![]() | `}}])
for (let i = 0; i < elements.length; i+=2) {
const cells = [["even", elements[i]], ["odd", elements[i+1]]]
for (const [cell, [template, {name, readme}]] of cells) {
if (cell === "even") {
-%>
<% } %> | <%- name -%> |
<% if (cell === "odd") {
-%>
<% }}
for (const [cell, [template, {name, readme}]] of cells) {
if (cell === "even") {
-%>
<% } %> <%- readme.demo.replace(/
i ? ` ${x}` : x)?.join("\n") %>
<% if (cell === "odd") {
-%>
<% }}} -%>
| <%= templates.community.name -%> |
<%- templates.community.readme.demo %>
<% } %>