mirror of
https://github.com/partofmyid/register.git
synced 2026-06-05 10:36:50 +07:00
remove dictionary
This commit is contained in:
parent
887d07b1a9
commit
18d26e0a05
5 changed files with 0 additions and 60 deletions
|
|
@ -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));
|
||||
Loading…
Add table
Add a link
Reference in a new issue