Back to articles
API Route Lister - The Ultimate CLI Tool for Discovering API Routes

API Route Lister - The Ultimate CLI Tool for Discovering API Routes

via Dev.to JavaScriptDeepak Ashok Karai

Ever wondered how many API endpoints your application has? I built a CLI tool that scans your source code and lists all your routes - with code preview, search, and filtering! 🚀 What is API Route Lister? API Route Lister is a command-line tool that automatically scans your codebase and discovers all API endpoints. It supports multiple frameworks including Express, Fastify, Next.js, Hapi, and Koa. Key Features 🔍 Auto-Detection - Automatically detects your framework 💻 Code Preview - View endpoint code directly in CLI 🎮 Interactive Mode - Browse with keyboard navigation 🔎 Search & Filter - Find routes by path or HTTP method 📊 Multiple Views - Table, List, or Tree format 📤 Export - JSON and Markdown output 📦 Installation npm install -g api-route-lister 🚀 Quick Start api-route-lister ./src api-route-lister ./src -i api-route-lister ./src -o tree -c 🎮 Interactive Mode Controls [j] Next [k] Prev [v] View Code [g] Go To [/] Search [f] Filter [r] Reset [q] Quit Quick Commands g 50 - Go to route

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
7 views

Related Articles