ScanJS works using the fantastic Acorn.js library, parsing JavaScript code and then converting it to AST format.
The AST (Abstract Tree Syntax) is then analyzed for common patterns and any problems are reported to the user.
For identifying "problems" in the code, ScanJS uses a list of preset scan rules. There's a default ruleset included with the demo package, but developers can also add their own rules and load them via a JSON file.
ScanJS works with client-side (browsers) and server-side (Node.js) JavaScript code.
Installation instructions are provided with the package's README file.
Requirements:
- Node.js
Comments not found