To export an async function in Node.js, we set the module.exports property.
For instance, we write
const doStuff = async () => {
// ...
};
module.exports.doStuff = doStuff;
to define the doStuff function and set that as the value of the module.exports.doStuff to export it.