async-function

0.1.0 • Public • Published

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}'

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i async-function

      Weekly Downloads

      0

      Version

      0.1.0

      License

      MIT

      Last publish

      Collaborators

      • eduardorfs