0.0.1 • Published 12 years ago
flight-static-analysis v0.0.1
flight-static-analysis
Static analysis tool for event-driven JavaScript.
Operates on a stream of file paths, outputs a new-line delimited stream of JSON.
Plan
- Group files by event
- Map event usage (ie, on this event, what gets triggered?)
- Graph dependencies and event interaction
Install
$ npm install -g flight-static-analysisI'd recommend also installing json-stream-inspect and tree-watch globally.
Usage
cd to your project's folder.
tree-watch . "**/*.js" | flight-static-analysis | json-stream-inspectFor TweetDeck, it looks something like this:
tree-watch ./client/web/scripts/swift/app "**/*.js" | flight-static-analysis | json-stream-inspectTrying it out
If you've cloned this project, try this:
$ cat test/files.txt | flight-static-analysis | json-stream-inspectLicense
MIT
0.0.1
12 years ago