Previously, the writeFileSync function would overwrite existing files without any checks, potentially leading to data loss. This change enhances the safety and reliability of file writing operations by preventing accidental overwrites.
What's Changed
Added a function to generate a unique filename dynamically.
Modified the file writing logic to use the generated unique filename.
Fixes #18
Context
Previously, the writeFileSync function would overwrite existing files without any checks, potentially leading to data loss. This change enhances the safety and reliability of file writing operations by preventing accidental overwrites.
What's Changed
Added a function to generate a unique filename dynamically. Modified the file writing logic to use the generated unique filename.