mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 06:15:34 +00:00
cleanup
This commit is contained in:
1 parent
ae3658b808
commit
9e2b0642a7
10 files changed
+28
-23
No files matched your search
+1
-1
@@ -8,4 +8,4 @@
|
||||
"record": {
|
||||
"CNAME": "awanshrestha.github.io"
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
-10
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"description": "Dinesh Kumar's personal developer website",
|
||||
"repo": "https://github.com/eldinesh/eldinesh.github.io",
|
||||
"owner": {
|
||||
"username": "eldinesh",
|
||||
"email": "dseera6@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "eldinesh.github.io"
|
||||
}
|
||||
}
|
||||
"description": "Dinesh Kumar's personal developer website",
|
||||
"repo": "https://github.com/eldinesh/eldinesh.github.io",
|
||||
"owner": {
|
||||
"username": "eldinesh",
|
||||
"email": "dseera6@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "eldinesh.github.io"
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
"owner": {
|
||||
"username": "Elflanded",
|
||||
"email": "elflanded@gmail.com"
|
||||
},
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "elflanded.github.io"
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,4 +8,4 @@
|
||||
"record": {
|
||||
"URL": "https://its.kobeff.repl.co"
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -3,9 +3,9 @@
|
||||
"repo": "https://github.com/mrkOS1210/mrkos1210.github.io",
|
||||
"owner": {
|
||||
"username": "mrkOS1210",
|
||||
"email": "72011329+mrkOS1210@users.noreply.github.com",
|
||||
"email": "72011329+mrkOS1210@users.noreply.github.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "mrkOS1210.github.io"
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,4 +8,4 @@
|
||||
"record": {
|
||||
"CNAME": "b0ab519e-38d4-41f0-a0ca-912ac3b6dfac.repl.co"
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,4 +8,4 @@
|
||||
"record": {
|
||||
"CNAME": "sabil62.github.io"
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,4 +8,4 @@
|
||||
"record": {
|
||||
"CNAME": "sisbest.github.io"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,4 +7,4 @@
|
||||
"record": {
|
||||
"URL": "https://github.com/Yusuf007R"
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
-3
@@ -1,11 +1,16 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const R = require('ramda');
|
||||
const { DOMAINS_PATH } = require('./constants');
|
||||
const {DOMAINS_PATH} = require('./constants');
|
||||
|
||||
const toDomain = str => path.join(DOMAINS_PATH, str);
|
||||
|
||||
const toDomainData = R.compose(JSON.parse, R.toString, fs.readFileSync, toDomain);
|
||||
const parseDomain = str => {
|
||||
try {return JSON.parse(str);}
|
||||
catch (e) {throw new Error("Error: Cant parse " + str);}
|
||||
};
|
||||
|
||||
const toDomainData = R.compose(parseDomain, R.toString, fs.readFileSync, toDomain);
|
||||
|
||||
const getDomains = () =>
|
||||
fs.promises.readdir(DOMAINS_PATH, {})
|
||||
@@ -14,4 +19,4 @@ const getDomains = () =>
|
||||
name: name.replace(/\.json$/, ''),
|
||||
})));
|
||||
|
||||
module.exports = { getDomains };
|
||||
module.exports = {getDomains};
|
||||
Reference in new issue
Block a user