MCPcopy Create free account

hub / github.com/davestewart/alias-hq / functions

Functions116 in github.com/davestewart/alias-hq

↓ 19 callersMethodload
(id)
demo/src/classes/User.js:8
↓ 7 callersFunctionresolve
* Slightly more robust version of resolve * * Prevents issue where only / is returned if passed in one segment * @returns {string}
src/utils/paths.js:9
↓ 6 callersFunctionabs
(path = '')
src/utils/tests.js:9
↓ 6 callersFunctiongetAliases
* * @returns {Aliases}
cli/services/config.js:51
↓ 6 callersFunctionmakeChoices
* Utility function for better inquirer choices
cli/utils/prompts.js:18
↓ 5 callersFunctiongetLongestStringLength
* Utility function to get the max length of a series of strings * * @param {array<string|object>} items An array or strings or objects * @param
cli/utils/text.js:12
↓ 5 callersFunctionmakeJson
* Make JSON to save to disk * * @param {object} data The data to convert to JSON * @param {JsonFormat|boolean} options An
cli/utils/text.js:173
↓ 4 callersFunctionindent
(text, indent = 4)
cli/utils/text.js:46
↓ 4 callersFunctionmakeHeader
(text)
cli/utils/text.js:37
↓ 4 callersFunctiontoObject
* Convert paths and return an object * * @param {function} callback The conversion function * @param {object} config The loaded con
src/utils/plugin.js:31
↓ 3 callersFunctiongetPathInfo
* Returns information about a path relative to a root * * @param {string} rootUrl * @param {string} path * @return {PathInfo}
cli/services/paths.js:78
↓ 3 callersFunctiongetPathsInfo
* Grab paths from input * * @param {string} text * @param {string} rootUrl * @param {boolean} dedupe * @returns {PathInfo[]}
cli/services/paths.js:121
↓ 3 callersFunctionisPathValid
* Check if a PathInfo object is valid and optionally exists * * @param {PathInfo} info * @param {boolean} exists * @returns {boolean}
cli/utils/paths.js:8
↓ 3 callersFunctionloadJson
(filename, asText = false)
cli/utils/file.js:6
↓ 3 callersFunctionmakeNoteBullet
* Make a single bullet item with icon, label and note * * @param {string} label * @param {string} note * @param {boolean} state * @
cli/utils/text.js:105
↓ 3 callersFunctionmakePathsBullets
* Build a bulleted list of paths with icon, label and note * * @param {PathInfo[]} infos * @param {boolean} [exists] * @returns {strin
cli/utils/text.js:156
↓ 3 callersFunctionshowConfig
()
cli/modules/configuration/create.js:37
↓ 3 callersFunctiontest
(input, output, valid = true, sort = true, dedupe = true)
tests/specs/cli/utils-paths.spec.js:7
↓ 2 callersFunctioncallback
(name, paths, config, options)
src/plugins/jest/index.js:8
↓ 2 callersFunctioncheckPaths
* Checks paths and returns useful data * * @param {string} text The text to parse into paths * @param {string} rootUrl The root UR
cli/services/paths.js:16
↓ 2 callersFunctioncleanPathsInfo
* Clean an array of PathInfo objects * * @param {PathInfo[]} infos * @param {boolean} valid * @param {boolean} sort * @param {bo
cli/services/paths.js:153
↓ 2 callersFunctioncompactJson
(text, padding = false)
cli/utils/text.js:208
↓ 2 callersFunctiongetConfigData
* Make the config to be saved to disk * * @param {Answers} answers * @returns {object}
cli/modules/configuration/update.js:67
↓ 2 callersFunctiongetPathString
* Ensure strings with spaces are quoted * * @param text * @returns {string|*}
cli/utils/paths.js:18
↓ 2 callersFunctionloadJson
* Load JSON file and handle errors in a helpful manner * * @param {string} path * @return {object} The loaded JSON * @throws An er
src/index.js:97
↓ 2 callersFunctionmakeBullet
(text, state)
cli/utils/text.js:80
↓ 2 callersFunctionmakeConfig
* Make a fresh Config object * * @returns {HQConfig}
src/index.js:77
↓ 2 callersFunctionmakePaths
* Generate JSConfig format paths * * @param {string[]} folders * @param {HQConfig} config * @param {Answers} answers * @returns {
cli/modules/configuration/update.js:25
↓ 2 callersFunctionmakeSettings
* Make a fresh Settings object * * @returns {HQSettings}
src/index.js:61
↓ 2 callersFunctionpara
(input, width = 60, indent = 2)
cli/utils/text.js:51
↓ 2 callersFunctionparsePathsFromText
* Convert a string of text containing folders to an array of folders * * Handles quotes, spaces, etc * * @param {string} text * @returns {st
cli/utils/paths.js:32
↓ 2 callersFunctionsaveJson
(filename, data, compact = false)
cli/utils/file.js:20
↓ 2 callersFunctiontoArray
* Convert paths and return an array * * @param {function} callback The conversion function * @param {object} config The loaded conf
src/utils/plugin.js:10
↓ 1 callersFunctioncheckPath
* Checks a single path and returns useful data * * @param {string} text The text to parse into a path * @param {string} rootUrl Th
cli/services/paths.js:47
↓ 1 callersFunctionconfigurePaths
()
cli/modules/configuration/index.js:18
↓ 1 callersFunctioncreateConfig
()
cli/modules/configuration/create.js:95
↓ 1 callersFunctiondebugConfiguration
()
cli/modules/integrations/debug.js:99
↓ 1 callersFunctionget
tests/specs/utils.spec.js:5
↓ 1 callersFunctiongetAnswers
* @returns {Answers}
cli/modules/configuration/update.js:326
↓ 1 callersFunctiongetAnswers
* @returns {SourceAnswers}
cli/modules/source/index.js:261
↓ 1 callersFunctiongetCsOptions
()
cli/modules/source/index.js:221
↓ 1 callersFunctiongetIntegrations
()
cli/services/docs.js:10
↓ 1 callersFunctiongetPaths
(name)
tests/globals.js:3
↓ 1 callersFunctiongetPlugins
* Returns all plugins as a 2D hash of plugins and their options * * In this format: * { * jest: {}, * rollup: { * object: { form
cli/services/config.js:29
↓ 1 callersFunctiongetStringLength
(item, prop)
cli/utils/text.js:13
↓ 1 callersFunctionindex
()
cli/index.js:25
↓ 1 callersFunctionintro
()
cli/index.js:21
↓ 1 callersFunctionisObject
(value)
cli/utils/index.js:3
↓ 1 callersFunctionload
* Load config * * @param {string} [value] Pass no value for to determine config file automatically * @param {string} va
src/index.js:183
↓ 1 callersFunctionloadConfig
* Load js/tsconfig.json file * * @param {string} path The absolute path to the config file
src/index.js:144
↓ 1 callersFunctionloadSettings
* Load user settings from package.json
src/index.js:127
↓ 1 callersFunctionmakeChoice
(text = '', value = undefined)
cli/utils/prompts.js:3
↓ 1 callersFunctionmakeConfig
* Make the config to be shown in the terminal * * @param {Answers} answers * @param {JsonFormat} [options] * @returns {string}
cli/modules/configuration/update.js:93
↓ 1 callersFunctionmakeFileBullet
(info, state)
cli/utils/text.js:89
↓ 1 callersFunctionmakeItemsBullets
* Build a bulleted list of items with icon, label and note * * @param {object[]} items * @param {string} labelProp * @param {string}
cli/utils/text.js:137
↓ 1 callersFunctionmakeObjectBullets
* Build a bulleted list of items with icon, label and note * * @param {object} item * @returns {*}
cli/utils/text.js:118
↓ 1 callersFunctionnumAliases
(load = false)
cli/services/config.js:102
↓ 1 callersFunctionopenDocs
()
cli/services/docs.js:18
↓ 1 callersFunctionopenIntegration
(hash = '')
cli/services/docs.js:14
↓ 1 callersFunctionplugin
(config, options = null)
tests/specs/plugins/custom.spec.js:7
↓ 1 callersFunctionprintConfig
(data)
cli/modules/integrations/debug.js:10
↓ 1 callersFunctionrun
()
cli/modules/source/index.js:293
↓ 1 callersFunctionsaveText
(path, text)
cli/utils/file.js:41
↓ 1 callersFunctionsetQuote
cli/modules/source/transformer/transformer.js:19
↓ 1 callersFunctionsetup
(aliased = true)
cli/modules/source/index.js:357
↓ 1 callersFunctionsetupIntegration
()
cli/modules/integrations/setup.js:64
↓ 1 callersFunctionsetupIntegrations
()
cli/modules/integrations/index.js:18
↓ 1 callersFunctiontest
(relSourceFile, targetPath, expected)
tests/specs/cli/revert-source.spec.js:15
↓ 1 callersFunctiontest
(relSourceFile, targetPath, expected = undefined)
tests/specs/cli/update-source.spec.js:15
↓ 1 callersFunctiontoAlias
* Resolves a relative path to an alias path * * @param {string} absSourceFile The absolute source file path * @param {string} targetPat
cli/modules/source/transformer/paths.js:12
↓ 1 callersFunctiontoRelative
* Resolves an alias path to a relative path * * @param {string} absSourceFile The absolute source file path * @param {string} targetPat
cli/modules/source/transformer/paths.js:125
↓ 1 callersFunctionupdateConfig
()
cli/modules/configuration/update.js:343
↓ 1 callersFunctionupdateSource
(aliased = true)
cli/modules/source/index.js:388
Functionadd
* Add a plugin to the core setup * * @param {string} name The plugin name * @param {function} callback The plugin function
src/index.js:299
Functioncallback
(name, [path], config, options)
src/plugins/rollup/index.js:8
Functioncallback
(name, [path], config)
src/plugins/webpack/index.js:4
Functioncallback
(alias, paths)
src/plugins/babel/index.js:4
FunctioncheckForVue
()
cli/modules/source/index.js:56
FunctionconfirmChoices
()
cli/modules/source/index.js:116
Methodconstructor
(config)
demo/src/classes/User.js:4
Functiondump
* Log output to terminal * * For some reason, logs seem to be asynchronous so we need to log all at once * * @param {string} path * @return {
cli/modules/source/transformer/stats.js:35
Functionfoo
()
demo/packages/services/foo.js:5
Functionfoo
()
demo/src/app/services/foo.js:4
FunctionfromName
(path)
cli/services/config.js:93
Functionget
* Convert paths config using a plugin or callback * * @param {string} plugin The name of an available plugin * @param {function} plugin
src/index.js:239
FunctiongetAnswer
(choices, text)
cli/utils/prompts.js:24
FunctiongetBaseUrl
()
cli/modules/configuration/update.js:129
FunctiongetChoice
()
cli/modules/configuration/update.js:107
FunctiongetConfig
()
tests/specs/load.spec.js:42
FunctiongetFormat
()
cli/modules/integrations/debug.js:50
FunctiongetModules
()
cli/modules/source/index.js:80
FunctiongetNames
()
cli/modules/integrations/setup.js:9
FunctiongetPaths
()
cli/modules/configuration/update.js:157
FunctiongetPaths
()
cli/modules/source/index.js:22
FunctiongetPlugin
()
cli/modules/integrations/debug.js:24
FunctiongetPrefix
()
cli/modules/configuration/update.js:208
Functioninspect
(values, depth, indent = 0)
src/utils/dev.js:4
Functionlog
* Log each individual replacement * * @param {string} from * @param {string} to
cli/modules/source/transformer/stats.js:18
FunctionmakeColumns
(rows, maxLength = 0)
cli/utils/text.js:27
Functionnames
* List available plugin names * * @returns {string[]}
src/index.js:311
next →1–100 of 116, ranked by callers