UNPKG

nextjs-analyzer

Version:

A modular tool that comprehensively analyzes Next.js projects. Includes component, performance, security, SEO, data fetching, code quality, and historical analysis features.

23 lines (19 loc) 513 B
const { setupCommands } = require('./commands'); const { logError } = require('../utils'); /** * CLI uygulamasını başlatır */ function run() { try { const program = setupCommands(); program.parse(process.argv); // Eğer hiçbir komut belirtilmemişse, yardım göster if (process.argv.length <= 2) { program.help(); } } catch (error) { logError('CLI başlatılırken hata oluştu:', error); process.exit(1); } } module.exports = { run };