Web components to view InSpec profiles.
See the live demo ... 🚧 🚧 🚧
To use it in your own project:
Step 1: Load the webcomponents polyfill
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
Step 2: Add this module
yarn add https://github.com/arlimus/inspeculus
Step 3: Use it
<script type="module" src="node_modules/inspeculus/src/inspec-profile.js"></script>
<inspec-profile enableInput></inspec-profile>
For static HTML see STATIC.md
enableInput
to activate the input button and allow users to paste their InSpec JSON into the module
Requirements:
- NodeJS v10+
- NPM or YARN
Installation:
yarn
yarn start
Build:
yarn build