New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

allure-single-html-file-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-single-html-file-js

Port of MihanEntalpo's allure-single-html-file from python to node to create a single html files using all the allure report data

  • 0.0.6
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
593
decreased by-29.66%
Maintainers
1
Weekly downloads
 
Created
Source

Allure single html file builder for JS

Tool to build allure generated folder into a single html file. Ported over from the Python repo allure-single-html-file by MihanEntalpo

What it's doing?

  1. Attempts to port over functionality in Python from allure-single-html-file
  2. Reads contents of allure-generated folder
  3. Creates server.js file, which has all the data files inside and code to start fake XHR server
  4. Patches index.html file, so it's using server.js and sinon-9.2.4.js (Taken from here), and could be run in any browser without --allow-file-access-from-files parameter of chrome browser
  5. Creates file complete.html with all files built-in in a single file

Requirements

  • Node (v16+)
  • You need to have your allure report folder generated (allure generate './some/path/to/allure/generated/folder')

Installation

npm install allure-single-html-file-js

Run as console script

node ./node_modules/allure-single-html-file-js/combine.js ./some/path/to/allure/generated/folder

Options

ALLURE_REPORT_SANITIZE_ANGLE_BRACKETS

If you set this environment variable to any value, then any angled brackets that appear in the content of the Allure Report (i.e "<" or ">") will be sanitized to "<" or ">"

If you don't add this environment variable, then the angled brackets won't be sanitized.

ALLURE_REPORT_SANITIZE_ANGLE_BRACKETS=1 node ./node_modules/allure-single-html-file-js/combine.js ./some/path/to/allure/generated/folder

TODO

FAQs

Package last updated on 06 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc