@anirudw/repolens 0.1.3 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -33
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,42 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Repolens
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- **Multi-language support**: JavaScript, TypeScript, Python, Java, and Markdown
|
|
8
|
-
- **Smart scanning**: Respects `.gitignore` rules and common build directories
|
|
9
|
-
- **Dependency analysis**: Builds a graph of imports and references
|
|
10
|
-
- **Multiple outputs**: Terminal summaries, JSON export, and interactive HTML visualization
|
|
11
|
-
|
|
12
|
-
## Installation
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
npm install
|
|
16
|
-
npm run build
|
|
17
|
-
```
|
|
7
|
+
**A cross-platform, multi-lingual repository intelligence CLI.**
|
|
18
8
|
|
|
19
|
-
|
|
9
|
+
Repolens analyzes your codebase using native C++ Abstract Syntax Trees (ASTs) to map out dependency networks, resolve local imports, and run PageRank algorithms to identify the architectural pillars of your project.
|
|
20
10
|
|
|
21
|
-
|
|
22
|
-
# Scan current directory
|
|
23
|
-
repolens
|
|
11
|
+
## Features
|
|
24
12
|
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
* **Multi-Lingual AST Parsing:** Uses `tree-sitter` to deeply understand JavaScript, TypeScript, Python, Java, and Markdown.
|
|
14
|
+
* **Intelligent Path Resolution:** Automatically resolves complex, extensionless local imports into absolute file paths.
|
|
15
|
+
* **PageRank Centrality:** Calculates inbound and outbound connection graphs to identify the most heavily relied-upon "Hub" files in your repository.
|
|
16
|
+
* **Entry-Point Detection:** Uses language-specific heuristics (e.g., `__name__ == "__main__"`, `public static void main`, React imports) to flag critical entry points.
|
|
17
|
+
* **JSON Export:** Dump your entire repository graph to disk for external visualization or CI/CD integrations.
|
|
18
|
+
* **Safe Scanning:** Automatically respects `.gitignore` and safely skips `node_modules` and `.git` directories.
|
|
27
19
|
|
|
28
|
-
|
|
29
|
-
repolens --verbose
|
|
20
|
+
---
|
|
30
21
|
|
|
31
|
-
|
|
32
|
-
repolens --format json --output graph.json
|
|
33
|
-
repolens --format html --output graph.html
|
|
34
|
-
```
|
|
22
|
+
## Installation
|
|
35
23
|
|
|
36
|
-
|
|
24
|
+
You can run Repolens on-demand using `npx`, or install it globally to use it as a daily driver.
|
|
37
25
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
-
|
|
41
|
-
- Java (.java)
|
|
42
|
-
- Markdown (.md)
|
|
26
|
+
**Global Installation (Recommended):**
|
|
27
|
+
```bash
|
|
28
|
+
npm install -g @anirudw/repolens
|