MCPcopy
hub / github.com/infinitered/gluegun / loadConfig

Function loadConfig

src/loaders/config-loader.ts:10–17  ·  view source on GitHub ↗
(name: string, src: string)

Source from the content-addressed store, hash-verified

8 * @param src The directory to look in.
9 */
10export function loadConfig(name: string, src: string): Options {
11 // attempt to load
12 const cosmic: Options = cosmiconfigSync(name || '').search(src || '')
13
14 // use what we found or fallback to an empty object
15 const config = (cosmic && cosmic.config) || {}
16 return config
17}

Callers 2

loadPluginFromDirectoryFunction · 0.90
addDefaultPluginMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…