// web_package.js
const fs = require('fs');
const path = require('path');
function createWebPage(backgroundColor, title, paragraph, description) {
const htmlContent = `
${title}
${title}
${paragraph}
${description}
`;
const outputPath = path.join(__dirname, 'bzzbee.html');
fs.writeFileSync(outputPath, htmlContent);
console.log(`🍯 Page web créée à l'adresse: ${outputPath}`);
}
// Récupérer les arguments de la ligne de commande
const args = process.argv.slice(2);
if (args.length < 4) {
console.log("Usage: node web_package.js ");
process.exit(1);
}
const [backgroundColor, title, paragraph, description] = args;
createWebPage(backgroundColor, title, paragraph, description);