MCPcopy Create free account

hub / github.com/cosmiconfig/cosmiconfig / functions

Functions95 in github.com/cosmiconfig/cosmiconfig

↓ 17 callersMethodabsolutePath
(dir: string)
test/util.ts:50
↓ 10 callersFunctioncosmiconfig
( moduleName: string, options: Readonly<Partial<Options>> = {}, )
src/index.ts:196
↓ 9 callersMethodclean
()
test/util.ts:104
↓ 9 callersFunctioncosmiconfigSync
( moduleName: string, options: Readonly<Partial<OptionsSync>> = {}, )
src/index.ts:211
↓ 9 callersMethodcreateFile
(file: string, contents: string)
test/util.ts:62
↓ 9 callersMethoddeleteTempDir
()
test/util.ts:97
↓ 8 callersMethodsearch
(from = '')
src/Explorer.ts:37
↓ 6 callersMethodgetSpyPathCalls
(spy: Mock | SpyInstance)
test/util.ts:70
↓ 6 callersMethodload
(filepath: string)
src/Explorer.ts:23
↓ 5 callersMethodcreateDir
(dir: string)
test/util.ts:57
↓ 4 callersFunctionemplace
(map: Map<K, V>, key: K, fn: () => V)
src/util.ts:6
↓ 4 callersFunctiongetPropertyByPath
( source: { [key: string]: unknown }, path: string | Array<string>, )
src/util.ts:24
↓ 4 callersFunctionnormalizeDirectorySlash
(pathname: string)
test/util.ts:8
↓ 3 callersMethod#readConfiguration
( filepath: string, importStack: Array<string> = [], )
src/Explorer.ts:103
↓ 3 callersMethod#readConfiguration
( filepath: string, importStack: Array<string> = [], )
src/ExplorerSync.ts:101
↓ 3 callersFunctiondecodeFileContent
(buffer: Buffer)
src/util.ts:50
↓ 3 callersFunctiongetExtensionDescription
(extension?: string)
src/ExplorerBase.ts:171
↓ 3 callersFunctiongetLoaderFunctionsByName
(loaders: Loaders)
test/index.test.ts:68
↓ 2 callersMethodload
(filepath: string)
src/ExplorerSync.ts:23
↓ 2 callersFunctionmergeAll
( // eslint-disable-next-line @typescript-eslint/no-explicit-any objects: ReadonlyArray<any>, options: M
src/merge.ts:46
↓ 2 callersFunctionmergeOptionsBase
( moduleName: string, defaults: IntOpts, options: Readonly<Partial<Opts>>, )
src/index.ts:98
↓ 2 callersFunctionremoveUndefinedValuesFromObject
( options: Record<string, unknown>, )
src/util.ts:61
↓ 2 callersMethodsearch
(from = '')
src/ExplorerSync.ts:35
↓ 2 callersFunctionutf16beBuffer
(contents: string)
test/util.ts:116
↓ 2 callersFunctionvalidateOptions
( options: Readonly<Partial<Options | OptionsSync>>, )
src/index.ts:140
↓ 1 callersMethod#fileExists
(path: string)
src/Explorer.ts:183
↓ 1 callersMethod#fileExists
(path: string)
src/ExplorerSync.ts:175
↓ 1 callersMethod#getDirs
(startDir: string)
src/Explorer.ts:192
↓ 1 callersMethod#getDirs
(startDir: string)
src/ExplorerSync.ts:184
↓ 1 callersMethod#loadConfigFileWithImports
( filepath: string, contents: string, importStack: Array<string>, )
src/Explorer.ts:114
↓ 1 callersMethod#loadConfigFileWithImports
( filepath: string, contents: string, importStack: Array<string>, )
src/ExplorerSync.ts:112
↓ 1 callersMethod#loadConfiguration
( filepath: string, contents: string, )
src/Explorer.ts:145
↓ 1 callersMethod#loadConfiguration
(filepath: string, contents: string)
src/ExplorerSync.ts:140
↓ 1 callersFunctioncheckConfigResult
( mock: SpyInstance, instanceNum: number, expectedLoaderNames: Record<string, string>, expectedExplore
test/index.test.ts:77
↓ 1 callersFunctioncheckResult
( mock: SpyInstance, instanceNum: number, expectedLoaders: any, expectedSearchPlaces:
test/index.test.ts:118
↓ 1 callersFunctioncheckResult
(result: any)
test/search-strategies.test.ts:21
↓ 1 callersFunctioncheckResult
(result: any)
test/failed-files.test.ts:120
↓ 1 callersFunctioncheckResult
(result: any)
test/successful-files.test.ts:35
↓ 1 callersFunctioncheckResult
( statSpy: any, readFileSpy: any, result: any, files: any, )
test/failed-directories.test.ts:113
↓ 1 callersFunctioncheckResult
(result: any)
test/import.test.ts:23
↓ 1 callersFunctioncheckResult
(readFileSpy: any, result: any, files: any)
test/caches.test.ts:63
↓ 1 callersFunctioncheckResult
(readFileSpy: any, result: any, files: any)
test/successful-directories.test.ts:99
↓ 1 callersFunctioncheckResult
( constructFiles: Array<string>, readFileSpy: SpyInstance, result: any, )
test/meta-config.test.ts:147
↓ 1 callersFunctioncheckResultBase
( mock: MockInstance, instanceNum: number, expectedLoaderFunctionNames: any, )
test/index.test.ts:362
↓ 1 callersFunctiongetDefaultSearchPlaces
(moduleName: string)
src/defaults.ts:3
↓ 1 callersFunctiongetDefaultSearchPlacesSync
(moduleName: string)
src/defaults.ts:29
↓ 1 callersFunctiongetResolvedSearchPlaces
( moduleName: string, toolDefinedSearchPlaces: Array<string>, userConfiguredOptions: T, )
src/index.ts:80
↓ 1 callersFunctiongetUserDefinedOptionsFromMetaConfig
()
src/index.ts:38
↓ 1 callersFunctionisDirectory
(path: string)
src/util.ts:71
↓ 1 callersFunctionisDirectorySync
(path: string)
src/util.ts:86
↓ 1 callersFunctionisPlainObject
(obj: unknown)
src/merge.ts:9
↓ 1 callersFunctionloadJsSync
(filepath)
src/loaders.ts:7
↓ 1 callersFunctionmerge
(target: any, source: any, options: MergeOptions)
src/merge.ts:18
↓ 1 callersFunctionmergeOptions
( moduleName: string, options: Readonly<Partial<Options>>, )
src/index.ts:154
↓ 1 callersFunctionmergeOptionsSync
( moduleName: string, options: Readonly<Partial<OptionsSync>>, )
src/index.ts:175
↓ 1 callersFunctionrandomString
()
test/successful-files.test.ts:16
↓ 1 callersFunctionrandomString
()
test/successful-directories.test.ts:24
↓ 1 callersFunctionrunTest
()
test/meta-config.test.ts:68
Function#validateConfig
()
src/ExplorerBase.ts:44
FunctionclearCaches
()
src/ExplorerBase.ts:79
FunctionclearLoadCache
()
src/ExplorerBase.ts:67
FunctionclearSearchCache
()
src/ExplorerBase.ts:73
Functionconstructor
(options: Readonly<T>)
src/ExplorerBase.ts:31
Methodconstructor
(options: InternalOptionsSync)
test/index.test.ts:37
Methodconstructor
(options: InternalOptions)
test/index.test.ts:54
Methodconstructor
()
test/util.ts:17
FunctiongetGlobalConfigDir
()
src/ExplorerBase.ts:144
FunctiongetGlobalDirs
(startDir: string)
src/ExplorerBase.ts:148
FunctiongetSearchPlacesForDir
( dir: DirToSearch, globalConfigPlaces: Array<string>, )
src/ExplorerBase.ts:135
Functionidentity
(x)
src/index.ts:34
FunctionisNotMjs
(filePath: string)
test/util.ts:110
FunctionjsLoader
()
test/index.test.ts:255
FunctionjsonLoader
()
test/index.test.ts:256
FunctionloadGrumbly
()
test/successful-directories.test.ts:1654
FunctionloadJs
()
test/failed-directories.test.ts:699
FunctionloadJs
(filepath)
src/loaders.ts:12
FunctionloadJson
(filepath, content)
src/loaders.ts:36
MethodloadSync
(filepath: string)
src/ExplorerSync.ts:225
FunctionloadThings
(filepath: any, content: any)
test/successful-directories.test.ts:1645
FunctionloadThingsAsync
()
test/failed-files.test.ts:233
FunctionloadThingsAsync
()
test/successful-files.test.ts:540
FunctionloadThingsAsync
()
test/failed-directories.test.ts:736
FunctionloadThingsAsync
()
test/successful-directories.test.ts:1922
FunctionloadThingsSync
()
test/successful-files.test.ts:565
FunctionloadThingsSync
()
test/successful-directories.test.ts:1961
FunctionloadYaml
(filepath, content)
src/loaders.ts:46
FunctionloadingMetaConfig
(value: boolean)
src/ExplorerBase.ts:40
FunctionmjsLoader
()
test/index.test.ts:259
FunctionnoExtLoader
()
test/index.test.ts:254
MethodsearchSync
(from = '')
src/ExplorerSync.ts:233
FunctiontoCosmiconfigResult
( filepath: string, config: Config, )
src/ExplorerBase.ts:84
Functiontransform
(innerResult)
test/failed-files.test.ts:203
Functiontransform
(result: any)
test/successful-files.test.ts:406
FunctionvalidateImports
( containingFilePath: string, imports: Array<unknown>, importStack: Array<string>, )
src/ExplorerBase.ts:107
FunctionyamlLoader
()
test/index.test.ts:257