How to use the to-vfile.write function in to-vfile

To help you get started, we’ve selected a few to-vfile examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github onflow / cadence / docs / generate.js View on Github external
async function writeMarkdown(file) {
  file.extname = '.md'
  file.stem += '.generated'
  await vfile.write(file)
}
github onflow / cadence / docs / generate.js View on Github external
async function writeHTML(file) {
  file.extname = '.html'
  await vfile.write(file)
}

to-vfile

vfile utility to read and write to the file system

MIT
Latest version published 1 year ago

Package Health Score

59 / 100
Full package analysis