UNPKG

@usebruno/cli

Version:

With Bruno CLI, you can now run your API collections with ease using simple command line commands.

10 lines (7 loc) 296 B
const fs = require('fs'); const htmlTemplateString = require('./html-template'); const makeHtmlOutput = async (results, outputPath) => { const resultsJson = JSON.stringify(results, null, 2); fs.writeFileSync(outputPath, htmlTemplateString(resultsJson)); }; module.exports = makeHtmlOutput;