organize and add count

This commit is contained in:
SX-9 2025-02-16 10:50:42 +07:00
commit 2b6f3e630a
6 changed files with 6 additions and 7 deletions

12
scripts/dbgen.js Normal file
View file

@ -0,0 +1,12 @@
const fs = require('fs');
console.log(
JSON.stringify(
fs.readdirSync('./domains').map(f =>
[
f.split('.').slice(0, -1).join('.'), // subdomain
JSON.parse(fs.readFileSync(`./domains/${f}`, 'utf8')).owner.username // owner
]
)
)
);