Generators-based library for synchronous execution of conventional Node functions