UNPKG

techor

Version:

Author technology like a top leader

15 lines (12 loc) 341 B
import exploreConfig from 'explore-config'; import log from '@techor/log'; function loadConfig() { const basename = 'techor.config'; const useConfig = exploreConfig(basename, { found: (basename)=>log.i`Loaded **${basename}**` }); if (useConfig) { return useConfig; } } export { loadConfig as default };