🚀 Usage
1️⃣ Create your config file
Create a config file in your project root or inside config/ folder (optional if you're using fallback only):
1// custom.config.js2export default {3 port: 3000,4 debug: true,5 database: {6 host: 'localhost',7 user: 'root'8 }9};
2️⃣ Load it in your app
1import { loadConfig } from 'hbh-ccl';3const config = await loadConfig({4 configName: 'custom.config.js', // optional5 defaultConfigPath: './default.config.js', // required6 verbose: true // optional7});9console.log('Loaded Config:', config);
🔍 If the config isn’t found in
./or./config/, it will load the fallback fromdefaultConfigPath.