https://github.com/tidev/appcd-dump-viewer
Appc Daemon Dump Viewer
https://github.com/tidev/appcd-dump-viewer
npm-package
Last synced: about 1 month ago
JSON representation
Appc Daemon Dump Viewer
- Host: GitHub
- URL: https://github.com/tidev/appcd-dump-viewer
- Owner: tidev
- License: other
- Created: 2017-12-05T08:47:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T21:46:47.000Z (over 1 year ago)
- Last Synced: 2025-05-10T05:26:32.942Z (about 2 months ago)
- Topics: npm-package
- Language: Vue
- Homepage:
- Size: 190 KB
- Stars: 4
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Appc Daemon Dump Viewer
The [Appc Daemon](https://github.com/appcelerator/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
```js
import launch from 'appcd-dump-viewer';launch('/path/to/dump.json');
```