UNPKG

atikin-coderank

Version:

Analyze JavaScript/TypeScript code and rank functions by complexity (cyclomatic + length + depth). Created by Atikin Verse.

8 lines (6 loc) 229 B
#!/usr/bin/env node const path = require('path'); const fs = require('fs'); const { analyzeProject } = require('../lib/index'); const targetPath = process.argv[2] || '.'; analyzeProject(path.resolve(process.cwd(), targetPath));