From 8faa84d56730bd1fc35b10d3d29db424691e3af5 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 4 Jun 2022 16:58:22 +0200 Subject: Generic stats and select --- stats.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 stats.js (limited to 'stats.js') diff --git a/stats.js b/stats.js new file mode 100644 index 0000000..4cd97bd --- /dev/null +++ b/stats.js @@ -0,0 +1,7 @@ +require("./info").criteria() + .then(crits => crits[process.argv[2]]) + .then(crit => Object.entries(crit) + .sort((a, b) => b[1].length - a[1].length) + .forEach(elem => console.log(elem[1].length, elem[0])) + ) + .then(_ => {}) -- cgit v1.2.3