feat: md builder, official instance

This commit is contained in:
Artemy 2023-08-16 10:12:14 +03:00
parent a05970b0bb
commit a889432d9e
4 changed files with 44 additions and 1 deletions

View file

@ -1,2 +1,7 @@
# instances
Instances of TXTDot proxies
| Name | Base URL | Secure |
| ------------------------ | --------------------- | ------ |
| Official TXTDot instance | <https://txt.dc09.ru> | true |

18
index.js Normal file
View file

@ -0,0 +1,18 @@
const fs = require("fs");
const instances = JSON.parse(fs.readFileSync("instances.json", "utf8"));
fs.writeFileSync(
"README.md",
`# instances
Instances of TXTDot proxies
| Name | Base URL | Secure |
| ---- | -------- | ------ |
${instances.map(
(instance) =>
`| ${instance.name} | <${instance.baseUrl}> | ${instance.secure} |`
)}
`
);

7
instances.json Normal file
View file

@ -0,0 +1,7 @@
[
{
"name": "Official TXTDot instance",
"baseUrl": "https://txt.dc09.ru",
"secure": true
}
]

13
package.json Normal file
View file

@ -0,0 +1,13 @@
{
"name": "instances",
"version": "1.0.0",
"description": "Instances of TXTDot proxies",
"main": "index.js",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "artegoser <me@artegoser.ru> blog.artegoser.ru",
"license": "MIT"
}