mirror of
https://github.com/partofmyid/register.git
synced 2026-06-05 10:36:50 +07:00
organize and add count
This commit is contained in:
parent
e7d87ee257
commit
2b6f3e630a
6 changed files with 6 additions and 7 deletions
12
scripts/dbgen.js
Normal file
12
scripts/dbgen.js
Normal 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
|
||||
]
|
||||
)
|
||||
)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue