UNPKG

namastejs

Version:

A spiritual greeting from your JavaScript code. Because every function deserves a 'Namaste 🙏'

25 lines (20 loc) 605 B
const { execSync } = require("child_process"); function checkTool(tool) { try { execSync(`${tool} --version`, { stdio: "ignore" }); return true; } catch { return false; } } function suggestMissingTools() { const tools = ["git", "node", "npm"]; const missing = tools.filter(tool => !checkTool(tool)); if (missing.length) { console.log("🛠️ Suggested tools to install:"); missing.forEach(tool => console.log(`→ ${tool}`)); } else { console.log("✅ All essential tools are available."); } } module.exports = { suggestMissingTools };