Upload generate-academic-report.js
Browse files
generate-academic-report.js
CHANGED
|
@@ -738,4 +738,12 @@ if (!fs.existsSync(outputDir)) {
|
|
| 738 |
fs.mkdirSync(outputDir, { recursive: true }); // folder create if not exists
|
| 739 |
}
|
| 740 |
|
| 741 |
-
const outputPath = path.join(outputDir, 'academic-report.docx'); // <--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 738 |
fs.mkdirSync(outputDir, { recursive: true }); // folder create if not exists
|
| 739 |
}
|
| 740 |
|
| 741 |
+
const outputPath = path.join(outputDir, 'academic-report.docx'); // <-- path
|
| 742 |
+
|
| 743 |
+
// Run if called directly
|
| 744 |
+
if (require.main === module) {
|
| 745 |
+
main();
|
| 746 |
+
}
|
| 747 |
+
|
| 748 |
+
// Export for use as module
|
| 749 |
+
module.exports = { generateAcademicReport, defaultConfig, sampleContent };
|