-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.js
68 lines (43 loc) · 1.27 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const fs = require('fs');
const path = require('path');
const jsonFilePath = path.join(__dirname, 'plugins.json');
const rawData = fs.readFileSync(jsonFilePath);
const pluginsData = JSON.parse(rawData);
let readmeContent = `<h1 align="center"> ZOKOU-2.0 Version-Française-plugins </h1>
<div align="center">
<br />
---
- Vous pouvez creer vos propres plugins et les proposer
---`;
pluginsData.pluginsVF.forEach(plugin => {
readmeContent += `
<h4 align="center"> ${plugin.name} </h1>
Description : ${plugin.desc}
\`\`\`
${plugin.url}
\`\`\`
- Auteur : ${plugin.author}
---`
});
const readmeFilePath = path.join(__dirname, 'ZOKOU-VF.md');
fs.writeFileSync(readmeFilePath, readmeContent);
console.log('ZOKOU-VF.md généré avec succès');
readmeContent = `<h1 align="center"> ZOKOU-2.0 English-version-plugins </h1>
<div align="center">
<br />
---
- Make your own plugins and propose it. thanks
---`;
pluginsData.pluginsVE.forEach(plugin => {
readmeContent += `
<h4 align="center"> ${plugin.name} </h1>
Description : ${plugin.desc}
\`\`\`
${plugin.url}
\`\`\`
- Author : ${plugin.author}
---`
});
const readmeFilePath2 = path.join(__dirname, 'ZOKOU-VE.md');
fs.writeFileSync(readmeFilePath2, readmeContent);
console.log('ZOKOU-VE.md généré avec succès');