1.1.4 • Published 6 years ago

appcd-dump-viewer v1.1.4

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
6 years ago

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');
1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago