generator
generator copied to clipboard
refactor: refactor the main parser function to validateinputs and added error handling to the function.
Description
- Added error handling and error logging to main parser function
- Destructured the parser function to remove the use of this kayword.
- Also added validation function to validate the input to main parser function.