Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function writeMarkdown(file) {
file.extname = '.md'
file.stem += '.generated'
await vfile.write(file)
}
async function writeHTML(file) {
file.extname = '.html'
await vfile.write(file)
}