mirror of
https://github.com/cheveguerra/Colaborando.git
synced 2026-08-19 00:46:37 +00:00
27 lines
751 B
JavaScript
27 lines
751 B
JavaScript
const fs = require('fs');
|
|
let content = fs.readFileSync('colaborando.php', 'utf8');
|
|
|
|
[3, 4, 5, 6].forEach(num => {
|
|
let oldStr = ` {
|
|
name: 'accionEspecialQuincenal',
|
|
value: "Generar ${num} activo sin costo"
|
|
}
|
|
];`;
|
|
let newStr = ` {
|
|
name: 'accionEspecialQuincenal',
|
|
value: "Generar ${num} activo sin costo"
|
|
},
|
|
{
|
|
name: 'accionEspecialLastUsed',
|
|
value: 0
|
|
},
|
|
{
|
|
name: 'accionEspecialPeriodicidad',
|
|
value: 2
|
|
}
|
|
];`;
|
|
content = content.replace(oldStr, newStr);
|
|
});
|
|
|
|
fs.writeFileSync('colaborando.php', content);
|