atikin-coderank
Version:
Analyze JavaScript/TypeScript code and rank functions by complexity (cyclomatic + length + depth). Created by Atikin Verse.
81 lines (60 loc) • 1.48 kB
Markdown
# Atikin CodeRank
Analyze JavaScript/TypeScript code and rank functions by complexity (cyclomatic complexity + length + nesting depth).
## 🚀 Installation
```bash
npm install -g atikin-coderank
```
## 📦 Usage
```bash
coderank ./your-project
```
### Example Output
```json
[
{
"file": "example.js",
"functionName": "calculateSum",
"lines": 12,
"cyclomaticComplexity": 4,
"nestingDepth": 2
}
]
```
## 🛠 How It Works
1. Parses JS/TS files using `esprima`
2. Calculates:
- Function length
- Cyclomatic complexity (branches)
- Nesting depth (max block depth)
## 👨💻 For Development
```bash
npm install
npm test
```
## 📤 To Publish
```bash
npm login
npm publish
```
Made with ❤️ by Atikin Verse
## 📲 FOLLOW US ON
Join our social media for exciting updates, tech drops, and insights!
| ACCOUNTS | USERNAME |
|---------------|----------------|
| FACEBOOK | atikinverse |
| INSTAGRAM | atikinverse |
| LINKEDIN | atikinverse |
| TWITTER (X) | atikinverse |
| THREADS | atikinverse |
| PINTEREST | atikinverse |
| QUORA | atikinverse |
| REDDIT | atikinverse |
| TUMBLR | atikinverse |
| SNAPCHAT | atikinverse |
| SKYPE | atikinverse |
| GITHUB | atikinverse |
💬 Feel free to reach out for questions, feature requests, or collaborations!
✨ **Happy Coding!** — Atikin Verse 🚀