0.1.0 • Published 6 years ago

styx-cli v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

6 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago