0.2.1 • Published 5 years ago

styx v0.2.1

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

styx

Derives the control flow graph from a JavaScript AST in ESTree format.

This project was created as a proof-of-concept implemention for my Bachelor's thesis in computer science:

Install

$ npm install styx

Usage

With the esprima and styx npm packages installed, Styx can be used as follows:

import Esprima from "esprima";
import * as Styx from "styx";

var code = "var x = 2 + 2;";
var ast = Esprima.parse(code);
var flowProgram = Styx.parse(ast);
var json = Styx.exportAsJson(flowProgram);

console.log(json);
0.2.1

5 years ago

0.2.0

5 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.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago