UNPKG

legendaryjs

Version:

LegendaryJS – The ultimate backend framework for speed, power, and simplicity.

24 lines (20 loc) • 952 B
const chalk = require('chalk'); const fs = require('fs'); const path = require('path'); function showInfo() { const configPath = path.join(process.cwd(), 'legendary.config.js'); if (!fs.existsSync(configPath)) { console.error(chalk.red('āŒ legendary.config.js not found.')); return; } const config = require(configPath); console.log(chalk.bold('\nšŸ“Š LegendaryJS Project Info')); console.log(chalk.gray('──────────────────────────────')); console.log('šŸ“¦ Port:', config.port); console.log('šŸ” Auth:', JSON.stringify(config.auth)); console.log('🧬 Protocol:', config.protocol.toUpperCase()); console.log('šŸ›  Features:', Object.keys(config).filter(k => config[k] === true).join(', ')); console.log('šŸ“š DB Enabled:', Object.keys(config.db).filter(k => config.db[k]).join(', ')); console.log(''); } module.exports = showInfo;