-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,823 additions
and
1,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
import { generatePdf } from './utils/generatePdf'; | ||
import { getLogger } from './utils/logger'; | ||
|
||
const logger = getLogger("MAIN"); | ||
|
||
const INPUT_FILE_PATH = `${process.cwd()}/resume.md`; | ||
const OUTPUT_FILE_PATH = `${process.cwd()}/output/art_rosnovsky_software_engineer.pdf`; | ||
|
||
(async () => { | ||
logger.info(`INPUT_FILE_PATH: ${INPUT_FILE_PATH}`); | ||
logger.info(`OUTPUT_FILE_PATH: ${OUTPUT_FILE_PATH}`); | ||
try { | ||
logger.info("Generating PDF..."); | ||
await generatePdf(INPUT_FILE_PATH, OUTPUT_FILE_PATH); | ||
} catch (error: any) { | ||
console.error(`Error occurred: ${error.message}`); | ||
logger.error(`Error occurred: ${error.message}`); | ||
process.exit(1); | ||
} | ||
}) | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.