Scanjs
Static analysis tool for javascript code based. Scanjs uses Esprima to convert sources to AST, then walks AST looking for patterns.
Install / Use
/learn @pauljt/ScanjsREADME
scanjs
- Static analysis tool for javascript codebases. Scanjs uses Acorn to convert sources to AST, then walks AST looking for patterns.
- Works on both client and server side
Client-side instructions
git clone https://github.com/mozilla/scanjs.gitnode server.js- Navigate to scanjs/client/ or see our example page
Server-side instructions
- Install node.js
git clone https://github.com/mozilla/scanjs.gitcd scanjsnpm installnode scanner.js -t DIRECTORY_PATH
Testing instructions
We use the mocha testing framework.
node server.js
http://127.0.0.1:4000/tests/
To add tests, create a new file in /tests/cases/ and following the naming
convention, which should be obvious. For example, our rule named .innerHTML
lives in /tests/cases/innerhtml.js.
From there, add the new test case to /tests/index.html. In our
example, that would involve adding a <script src='/tests/cases/innerhtml.js'></script>.
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
