Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davestewart/alias-hq
/ functions
Functions
116 in github.com/davestewart/alias-hq
⨍
Functions
116
◇
Types & classes
2
↓ 19 callers
Method
load
(id)
demo/src/classes/User.js:8
↓ 7 callers
Function
resolve
* 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 callers
Function
abs
(path = '')
src/utils/tests.js:9
↓ 6 callers
Function
getAliases
* * @returns {Aliases}
cli/services/config.js:51
↓ 6 callers
Function
makeChoices
* Utility function for better inquirer choices
cli/utils/prompts.js:18
↓ 5 callers
Function
getLongestStringLength
* 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 callers
Function
makeJson
* 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 callers
Function
indent
(text, indent = 4)
cli/utils/text.js:46
↓ 4 callers
Function
makeHeader
(text)
cli/utils/text.js:37
↓ 4 callers
Function
toObject
* Convert paths and return an object * * @param {function} callback The conversion function * @param {object} config The loaded con
src/utils/plugin.js:31
↓ 3 callers
Function
getPathInfo
* Returns information about a path relative to a root * * @param {string} rootUrl * @param {string} path * @return {PathInfo}
cli/services/paths.js:78
↓ 3 callers
Function
getPathsInfo
* Grab paths from input * * @param {string} text * @param {string} rootUrl * @param {boolean} dedupe * @returns {PathInfo[]}
cli/services/paths.js:121
↓ 3 callers
Function
isPathValid
* Check if a PathInfo object is valid and optionally exists * * @param {PathInfo} info * @param {boolean} exists * @returns {boolean}
cli/utils/paths.js:8
↓ 3 callers
Function
loadJson
(filename, asText = false)
cli/utils/file.js:6
↓ 3 callers
Function
makeNoteBullet
* 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 callers
Function
makePathsBullets
* 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 callers
Function
showConfig
()
cli/modules/configuration/create.js:37
↓ 3 callers
Function
test
(input, output, valid = true, sort = true, dedupe = true)
tests/specs/cli/utils-paths.spec.js:7
↓ 2 callers
Function
callback
(name, paths, config, options)
src/plugins/jest/index.js:8
↓ 2 callers
Function
checkPaths
* 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 callers
Function
cleanPathsInfo
* Clean an array of PathInfo objects * * @param {PathInfo[]} infos * @param {boolean} valid * @param {boolean} sort * @param {bo
cli/services/paths.js:153
↓ 2 callers
Function
compactJson
(text, padding = false)
cli/utils/text.js:208
↓ 2 callers
Function
getConfigData
* Make the config to be saved to disk * * @param {Answers} answers * @returns {object}
cli/modules/configuration/update.js:67
↓ 2 callers
Function
getPathString
* Ensure strings with spaces are quoted * * @param text * @returns {string|*}
cli/utils/paths.js:18
↓ 2 callers
Function
loadJson
* 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 callers
Function
makeBullet
(text, state)
cli/utils/text.js:80
↓ 2 callers
Function
makeConfig
* Make a fresh Config object * * @returns {HQConfig}
src/index.js:77
↓ 2 callers
Function
makePaths
* Generate JSConfig format paths * * @param {string[]} folders * @param {HQConfig} config * @param {Answers} answers * @returns {
cli/modules/configuration/update.js:25
↓ 2 callers
Function
makeSettings
* Make a fresh Settings object * * @returns {HQSettings}
src/index.js:61
↓ 2 callers
Function
para
(input, width = 60, indent = 2)
cli/utils/text.js:51
↓ 2 callers
Function
parsePathsFromText
* 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 callers
Function
saveJson
(filename, data, compact = false)
cli/utils/file.js:20
↓ 2 callers
Function
toArray
* Convert paths and return an array * * @param {function} callback The conversion function * @param {object} config The loaded conf
src/utils/plugin.js:10
↓ 1 callers
Function
checkPath
* 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 callers
Function
configurePaths
()
cli/modules/configuration/index.js:18
↓ 1 callers
Function
createConfig
()
cli/modules/configuration/create.js:95
↓ 1 callers
Function
debugConfiguration
()
cli/modules/integrations/debug.js:99
↓ 1 callers
Function
get
tests/specs/utils.spec.js:5
↓ 1 callers
Function
getAnswers
* @returns {Answers}
cli/modules/configuration/update.js:326
↓ 1 callers
Function
getAnswers
* @returns {SourceAnswers}
cli/modules/source/index.js:261
↓ 1 callers
Function
getCsOptions
()
cli/modules/source/index.js:221
↓ 1 callers
Function
getIntegrations
()
cli/services/docs.js:10
↓ 1 callers
Function
getPaths
(name)
tests/globals.js:3
↓ 1 callers
Function
getPlugins
* 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 callers
Function
getStringLength
(item, prop)
cli/utils/text.js:13
↓ 1 callers
Function
index
()
cli/index.js:25
↓ 1 callers
Function
intro
()
cli/index.js:21
↓ 1 callers
Function
isObject
(value)
cli/utils/index.js:3
↓ 1 callers
Function
load
* Load config * * @param {string} [value] Pass no value for to determine config file automatically * @param {string} va
src/index.js:183
↓ 1 callers
Function
loadConfig
* Load js/tsconfig.json file * * @param {string} path The absolute path to the config file
src/index.js:144
↓ 1 callers
Function
loadSettings
* Load user settings from package.json
src/index.js:127
↓ 1 callers
Function
makeChoice
(text = '', value = undefined)
cli/utils/prompts.js:3
↓ 1 callers
Function
makeConfig
* Make the config to be shown in the terminal * * @param {Answers} answers * @param {JsonFormat} [options] * @returns {string}
cli/modules/configuration/update.js:93
↓ 1 callers
Function
makeFileBullet
(info, state)
cli/utils/text.js:89
↓ 1 callers
Function
makeItemsBullets
* 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 callers
Function
makeObjectBullets
* Build a bulleted list of items with icon, label and note * * @param {object} item * @returns {*}
cli/utils/text.js:118
↓ 1 callers
Function
numAliases
(load = false)
cli/services/config.js:102
↓ 1 callers
Function
openDocs
()
cli/services/docs.js:18
↓ 1 callers
Function
openIntegration
(hash = '')
cli/services/docs.js:14
↓ 1 callers
Function
plugin
(config, options = null)
tests/specs/plugins/custom.spec.js:7
↓ 1 callers
Function
printConfig
(data)
cli/modules/integrations/debug.js:10
↓ 1 callers
Function
run
()
cli/modules/source/index.js:293
↓ 1 callers
Function
saveText
(path, text)
cli/utils/file.js:41
↓ 1 callers
Function
setQuote
cli/modules/source/transformer/transformer.js:19
↓ 1 callers
Function
setup
(aliased = true)
cli/modules/source/index.js:357
↓ 1 callers
Function
setupIntegration
()
cli/modules/integrations/setup.js:64
↓ 1 callers
Function
setupIntegrations
()
cli/modules/integrations/index.js:18
↓ 1 callers
Function
test
(relSourceFile, targetPath, expected)
tests/specs/cli/revert-source.spec.js:15
↓ 1 callers
Function
test
(relSourceFile, targetPath, expected = undefined)
tests/specs/cli/update-source.spec.js:15
↓ 1 callers
Function
toAlias
* 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 callers
Function
toRelative
* 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 callers
Function
updateConfig
()
cli/modules/configuration/update.js:343
↓ 1 callers
Function
updateSource
(aliased = true)
cli/modules/source/index.js:388
Function
add
* Add a plugin to the core setup * * @param {string} name The plugin name * @param {function} callback The plugin function
src/index.js:299
Function
callback
(name, [path], config, options)
src/plugins/rollup/index.js:8
Function
callback
(name, [path], config)
src/plugins/webpack/index.js:4
Function
callback
(alias, paths)
src/plugins/babel/index.js:4
Function
checkForVue
()
cli/modules/source/index.js:56
Function
confirmChoices
()
cli/modules/source/index.js:116
Method
constructor
(config)
demo/src/classes/User.js:4
Function
dump
* 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
Function
foo
()
demo/packages/services/foo.js:5
Function
foo
()
demo/src/app/services/foo.js:4
Function
fromName
(path)
cli/services/config.js:93
Function
get
* Convert paths config using a plugin or callback * * @param {string} plugin The name of an available plugin * @param {function} plugin
src/index.js:239
Function
getAnswer
(choices, text)
cli/utils/prompts.js:24
Function
getBaseUrl
()
cli/modules/configuration/update.js:129
Function
getChoice
()
cli/modules/configuration/update.js:107
Function
getConfig
()
tests/specs/load.spec.js:42
Function
getFormat
()
cli/modules/integrations/debug.js:50
Function
getModules
()
cli/modules/source/index.js:80
Function
getNames
()
cli/modules/integrations/setup.js:9
Function
getPaths
()
cli/modules/configuration/update.js:157
Function
getPaths
()
cli/modules/source/index.js:22
Function
getPlugin
()
cli/modules/integrations/debug.js:24
Function
getPrefix
()
cli/modules/configuration/update.js:208
Function
inspect
(values, depth, indent = 0)
src/utils/dev.js:4
Function
log
* Log each individual replacement * * @param {string} from * @param {string} to
cli/modules/source/transformer/stats.js:18
Function
makeColumns
(rows, maxLength = 0)
cli/utils/text.js:27
Function
names
* List available plugin names * * @returns {string[]}
src/index.js:311
next →
1–100 of 116, ranked by callers