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

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

Readme

Keywords

none

Package Sidebar

Install

npm i rspec-json-to-html

Weekly Downloads

1

Version

1.1.3

License

MIT

Unpacked Size

23.8 kB

Total Files

10

Last publish

Collaborators

  • morochena