Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const outputDoc = doc => {
const buffer = fs.readFileSync(path.join(apiPath, doc))
const output = DocTree.parse(buffer).output({ render })
return output
}