1.1.3 • Published 2 years ago
rspec-json-to-html v1.1.3
Usage
const fs = require('fs');
const { jsonToHtml } = require('rspec-json-to-html');
const rspecJson = JSON.parse(fs.readFileSync('./rspec.json', 'utf8'));
const template = fs.readFileSync('./template.pug', 'utf8');
const html = jsonToHtml(rspecJson, template);
fs.writeFileSync('./report.html', html);