remove dictionary

This commit is contained in:
satr14washere 2026-03-21 17:03:28 +07:00
commit 18d26e0a05
5 changed files with 0 additions and 60 deletions

View file

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