I have a module as follows:
async.js
module.exports = async function (){
    await func()
}
index.js
var asyncFun = require('async') 
How do i run it directly as asyncFun() in index.js ?
I know how to run these functions as middlewares but i want to run it directly. As for running it i need to call await and await cannot be called without being inside async.

asyncFun().then( () => doSomething() )