UNPKG

@waynew/boa

Version:

Use Python modules seamlessly in Node.js

14 lines (12 loc) 230 B
module.exports = (T, wrap) => { function *generatorProxy() { do { let curr = T.next(); if (curr.done) { break; } yield wrap(curr.value); } while (true); } return generatorProxy(); };