1.0.0 • Published 2 years ago

rspec-json-to-html2 v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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);