rspec-json-to-html2
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i rspec-json-to-html2

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

26.4 kB

Total Files

11

Last publish

Collaborators

  • morochena