0.1.0 • Published 5 years ago

styx-cli v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

styx-cli

Provides a command-line interface for the Styx control flow graph derivation library.

Install

$ npm install -g styx-cli

Usage

The following command will load the input.js file, analyze the JavaScript program, export it as JSON, and write the output to stdout:

$ styx input.js

If the --minify-json flag is set, the exported JSON will be minified (rather than properly indented):

$ styx input.js --minify-json

The output can be redirected to a specific file using the output redirection operator:

$ styx input.js > input.json

To export the control flow graph of the main program in DOT format, set --format to dot:

$ styx input.js --format dot

To export the control flow graph of a single function in DOT format, provide its ID via --graph:

$ styx input.js --format dot --graph 1

All available command-line arguments are shown when the --help flag is set:

$ styx --help
0.1.0

5 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago