]> git.lizzy.rs Git - local-nhentai.git/blobdiff - stats.js
Generic stats and select
[local-nhentai.git] / stats.js
diff --git a/stats.js b/stats.js
new file mode 100644 (file)
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(_ => {})