This commit is contained in:
Akshay Nair committed 2020-12-10 21:00:53 +05:30
1 parent ae3658b808
commit 9e2b0642a7
10 files changed
+28 -23

No files matched your search

+1 -1
View File
@@ -8,4 +8,4 @@
"record": {
"CNAME": "awanshrestha.github.io"
}
}
}
+10 -10
View File
@@ -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
View File
@@ -4,8 +4,8 @@
"owner": {
"username": "Elflanded",
"email": "elflanded@gmail.com"
},
},
"record": {
"CNAME": "elflanded.github.io"
}
}
}
+1 -1
View File
@@ -8,4 +8,4 @@
"record": {
"URL": "https://its.kobeff.repl.co"
}
}
}
+2 -2
View File
@@ -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
View File
@@ -8,4 +8,4 @@
"record": {
"CNAME": "b0ab519e-38d4-41f0-a0ca-912ac3b6dfac.repl.co"
}
}
}
+1 -1
View File
@@ -8,4 +8,4 @@
"record": {
"CNAME": "sabil62.github.io"
}
}
}
+1 -1
View File
@@ -8,4 +8,4 @@
"record": {
"CNAME": "sisbest.github.io"
}
}
}
+1 -1
View File
@@ -7,4 +7,4 @@
"record": {
"URL": "https://github.com/Yusuf007R"
}
}
}
+8 -3
View File
@@ -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};