lux-ai-vis
v3.1.3
Published
Opens the official Lux AI Viewer from CLI
Downloads
2
Readme
Lux AI Vis
Opens the Lux AI Viewer from the CLI.
This is a third-party wrapper around a (slightly modified) copy of the Official Lux AI Viewer. It allows you to launch the viewer from a single CLI command -- essentially saving the time of clicking the "upload" button and selecting the JSON file to upload. It allows for a tighter integration in the build-simulate-visualize debugging workflow, especially for developers using Typescript or Javascript.
Refer to the original Lux AI Viewer README for full details.
Usage
Install globally:
npm i -g lux-ai-vis
lux-ai-vis replay.json
With NPX:
npx lux-ai-vis replay.json
From a NPM package.json
script:
"vis": "lux-ai-vis replay.json"
From inside node_modules
:
node node_modules/lux-ai-vis/dist/vis.js replay.json
From inside this repo:
npm run build
node dist/vis.js ../lux-ai/replays/replay.json