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

View file

@ -1,12 +0,0 @@
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
]
)
)
);