async-function
v0.1.0
Published
Expose internal AsyncFunction constructor
Downloads
6
Readme
async-function
Allow change prototype of async functions like Function.prototype but only on async functions, works only on native
const AsyncFunction = require('async-function');
const return1 = new AsyncFunction('return 1');
console.log(return1) // 'async function anonymous() {\nreturn 1\n}'