aboutsummaryrefslogtreecommitdiff
path: root/stats.js
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-06-04 16:58:22 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-06-04 16:58:22 +0200
commit8faa84d56730bd1fc35b10d3d29db424691e3af5 (patch)
treef5e1e4d6ae6e5fd639f6ddc511fd9cf866789e72 /stats.js
parent8a0a187b31a3e0e9b9faed1369441576a2b1d103 (diff)
downloadlocal-nhentai-master.tar.xz
Generic stats and selectHEADmaster
Diffstat (limited to 'stats.js')
-rw-r--r--stats.js7
1 files changed, 7 insertions, 0 deletions
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(_ => {})