Yara interview question

A take home practice to refactor existing codebase from python to nodejs