1.2.7 • Published 3 years ago
@ubilabs/ubilabs-debug-panel v1.2.7
Ubilabs Debug Panel
Description
This is a library to easily implement a debug panel into your application.
Table of contents
Installation
npm install @ubilabs/ubilabs-debug-panelUsage
Default import from @ubilabs/ubilabs-debug-panel and call the constructor:
import DebugPanel from '@ubilabs/ubilabs-debug-panel';
const debugPanel = new DebugPanel();Add your custom properties with the syntax:
debugPanel.add('Variable Name', () => {});Examples
There is a simple example page that imports the debug-panel directly: https://ubilabs.github.io/ubilabs-debug-panel/. To run the example locally:
npm install
npm startPublish
A publish happens automatically when a new version tag is being pushed:
npm version major|minor|patch
git push && git push --tags