appcd-dump-viewer

1.1.4 • Public • Published

Appc Daemon Dump Viewer

The Appc Daemon has a dump command that generates a JSON object containing the daemon's config, status, health, and log messages. This file can be cumbersome to grok, so this tool will allow the data to be rendered in a format that is easier to read.

Usage

Open the dist/index.html file in a web browser, then drag and drop the file or a link into the browser. A web server is not required.

Node.js API

launch()

launch(dumpFile)

launch(dumpFile, cleanupTimer)

Opens the dump viewer in the default browser.

  • dumpFile - (String) Optional path to the JSON dump file to load. The dump file is converted to a temporary JavaScript file and loaded via JSONP. If the temporary file already exists, it will be overwritten by the new file.

  • cleanupTimer - (Number) Optional number of milliseconds to wait before deleting the temporary JavaScript file. By default the temporary JavaScript file is not deleted.

Returns a Promise which resolves once the browser has launched.

Example

import launch from 'appcd-dump-viewer';
 
launch('/path/to/dump.json');

Readme

Keywords

none

Package Sidebar

Install

npm i appcd-dump-viewer

Weekly Downloads

3

Version

1.1.4

License

Apache-2.0

Unpacked Size

1.03 MB

Total Files

20

Last publish

Collaborators

  • cb1kenobi
  • awam
  • tisdk