salekml commited on
Commit
90870d2
·
verified ·
1 Parent(s): 7faa5a3

Upload generate-academic-report.js

Browse files
Files changed (1) hide show
  1. generate-academic-report.js +9 -1
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'); // <-- final path
 
 
 
 
 
 
 
 
 
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 };