mwelwankuta / merlee.js

🚀 minimalist web framework for Node.js
https://npmjs.com/package/merlee.js
MIT License
12 stars 4 forks source link

Convert CommonJS Imports and Exports to the Module Style #5

Closed mwelwankuta closed 5 months ago

mwelwankuta commented 5 months ago

Issue:
Currently, the project uses CommonJS style imports and exports throughout the codebase. While this has been functional so far, we want to modernize our codebase by transitioning to the more standardized module style imports, these efforts will also make it easier later on when plans to add typescript to this project.

Reference StackOverflow question about module and commonjs imports

Objective:
The goal of this task is to update all CommonJS imports and exports to the module style syntax, which aligns better with the ECMAScript module system. By doing so, we aim to improve the maintainability and interoperability of our project while adhering to modern JavaScript standards.

Task:

Expected Outcome:

How to Contribute:

  1. Fork the repository to your GitHub account.
  2. Create a new branch for this task.
  3. Make the necessary changes to convert CommonJS imports and exports to module style.
  4. Test your changes to ensure they do not introduce any regressions.
  5. Submit a pull request to the main repository with your changes.

Additional Information:
If you have any questions or need clarification on any aspect of this task, feel free to leave a comment on this issue. We're here to help!

Before Making a pr confirm that the following files have been converted