const fs = require('fs').promises
// https://stackoverflow.com/a/57708635/3006854
module.exports = async (f) => !!(await fs.stat(f).catch(e=>false))