1.11.0 • Published 2 years ago
luna-scanner v1.11.0
☾ LUNA - Library Usage in Node.js Analyzer
Description
LUNA is a software development tool for node.js (and other javascript) projects, with a focus on libraries. The goal of LUNA is to aid developers in better understanding how libraries are being utilized in their projects.
Requirements
- Node.js
- Your node.js project
Usage
Inside any node.js project, run:
npx luna-scanner
After analyzing the source code, it will generate a LUNA report, which includes a visualization about the interaction between source code and libraries.
Configuration
Via package.json
(defaults):
{
...
"luna": {
"debug": false, // toggle debug mode
"components": { // toggle components of LUNA
"callGraph": true, // detection of function calls within files
"dependencyTree": true, // detection of dependency chains
"libraryAPI": true, // detection of used API of libraries
},
"ignore": [], // array of glob patterns for LUNA's scanner to ignore
},
...
}
Via command line arguments (limited):
npx luna-scanner [path_to_project] [debug]
Known Issues
The library used to handle collapsing and expanding of nodes may break in some situations. Best to avoid excessive collapsing/expanding.
Feedback
Much appreciated! I encourage you to use my feedback form.