UNPKG

legendaryjs

Version:

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

19 lines (15 loc) 856 B
const { context } = require('../../legendaryjs'); function inspect() { console.log('🕵️ LegendaryJS Inspector\n'); console.log(`📦 Port: ${context.config.port}`); console.log(`🔐 Auth: ${JSON.stringify(context.features.auth)}`); console.log(`🧠 DB: ${JSON.stringify(context.features.db)}`); console.log(`📘 Docs: ${context.features.docs}`); console.log(`📊 Dashboard: ${context.features.dashboard}`); console.log(`🧰 DevTools: ${context.features.devtools}`); console.log(`📡 Webhooks: ${JSON.stringify(context.features.webhooks)}`); console.log(`🔑 API Keys: ${context.features.apiKeys?.length || 0}`); console.log(`🧭 Routes: ${context.features.routes?.length || 0} files`); console.log(`🧩 Plugins: ${context.features.plugins ? 'Enabled' : 'Disabled'}`); } module.exports = { inspect };