Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/usmanyunusov/nano-staged
/ functions
Functions
92 in github.com/usmanyunusov/nano-staged
⨍
Functions
92
◇
Types & classes
4
↓ 167 callers
Function
match
(glob, path, opts = {})
test/glob-to-regex.test.js:6
↓ 22 callers
Function
getForceColorLevel
()
lib/utils.js:46
↓ 20 callers
Function
createGit
(cwd = process.cwd())
lib/git.js:54
↓ 14 callers
Function
createGitWorkflow
({ allowEmpty = false, dotPath = '', rootPath = '' } = {})
lib/git-workflow.js:6
↓ 14 callers
Function
fixture
(name)
test/utils/index.js:25
↓ 13 callers
Function
appendFile
(filename, content, dir = cwd)
bench/running-time/index.js:20
↓ 12 callers
Function
getConfig
(cwd = process.cwd(), config = undefined)
lib/config.js:34
↓ 12 callers
Function
tester
(globstar)
test/glob-to-regex.test.js:45
↓ 11 callers
Function
validConfig
(config)
lib/config.js:55
↓ 10 callers
Function
createRunner
({ allowEmpty, git_paths, config, stream, files, type, cwd })
lib/runner.js:7
↓ 9 callers
Function
execGit
(args)
test/git.test.js:12
↓ 9 callers
Function
writeFile
(filename, content, dir = process.cwd())
test/utils/index.js:15
↓ 7 callers
Function
appendFile
(filename, content, dir = process.cwd())
test/utils/index.js:7
↓ 7 callers
Function
createStdout
()
test/utils/index.js:29
↓ 7 callers
Function
execGit
(args)
test/git-workflow.test.js:13
↓ 6 callers
Function
execGit
(args)
bench/running-time/index.js:24
↓ 6 callers
Function
toArray
(val)
lib/utils.js:11
↓ 4 callers
Function
createCmdRunner
({ cwd = process.cwd(), type = 'staged', rootPath = '', config = {}, files = [], } = {})
lib/cmd-runner.js:10
↓ 4 callers
Function
print
(lines)
lib/reporter.js:6
↓ 4 callers
Function
stringArgvToArray
(str = '')
lib/utils.js:21
↓ 3 callers
Function
createRenderer
(stream, { isTTY = true } = {})
lib/renderer.js:95
↓ 3 callers
Function
createReporter
(stream = process.stderr)
lib/reporter.js:5
↓ 3 callers
Function
group
(entries = [])
lib/git.js:30
↓ 3 callers
Function
removeFile
(dir)
test/utils/index.js:19
↓ 2 callers
Function
benchmark
(lib)
bench/size/index.js:20
↓ 2 callers
Function
endsWith
(str, end)
lib/executor.js:44
↓ 2 callers
Function
executor
(cmd, args = [], opts = {})
lib/executor.js:270
↓ 2 callers
Function
getStateSymbol
(task)
lib/renderer.js:23
↓ 2 callers
Function
globToRegex
(glob, opts = {})
lib/glob-to-regex.js:25
↓ 2 callers
Function
isCmdFile
(cmd)
lib/executor.js:48
↓ 2 callers
Function
isRooted
(p)
lib/executor.js:110
↓ 2 callers
Function
isUnixExecutable
(stats)
lib/executor.js:192
↓ 2 callers
Function
makeDir
(dir = process.cwd())
test/utils/index.js:11
↓ 2 callers
Function
readConfig
(path)
lib/config.js:18
↓ 2 callers
Function
renderCI
(tasks)
lib/renderer.js:75
↓ 2 callers
Function
renderTree
(tasks, level = 0)
lib/renderer.js:56
↓ 2 callers
Function
tryGetExecutablePath
(filePath, extensions)
lib/executor.js:120
↓ 1 callers
Function
escapeArgument
(arg, doubleEscapeMetaChars = false)
lib/executor.js:16
↓ 1 callers
Function
escapeCommand
(arg)
lib/executor.js:12
↓ 1 callers
Function
findInPath
(tool)
lib/executor.js:200
↓ 1 callers
Function
getJSON
(url)
bench/size/index.js:6
↓ 1 callers
Function
getLines
(str = '', width = 80)
lib/renderer.js:16
↓ 1 callers
Function
getPathKey
(env = process.env)
lib/executor.js:94
↓ 1 callers
Function
getPrefix
(root)
lib/executor.js:63
↓ 1 callers
Function
getPrefixFromTree
(current)
lib/executor.js:77
↓ 1 callers
Function
getSpawnArgs
(cmd, args)
lib/executor.js:27
↓ 1 callers
Function
getSpawnFileName
(cmd)
lib/executor.js:53
↓ 1 callers
Function
getSpinner
()
lib/renderer.js:7
↓ 1 callers
Function
getTitles
(task)
lib/renderer.js:44
↓ 1 callers
Function
hasFlags
(...flags)
lib/utils.js:40
↓ 1 callers
Function
initGitRepo
()
bench/running-time/index.js:29
↓ 1 callers
Function
initProject
()
bench/running-time/index.js:39
↓ 1 callers
Function
makeDir
(dir = cwd)
bench/running-time/index.js:16
↓ 1 callers
Function
normalizeSeparators
(p = '')
lib/executor.js:188
↓ 1 callers
Function
run
()
lib/bin.js:14
↓ 1 callers
Function
run
()
bench/running-time/index.js:82
↓ 1 callers
Function
showTime
(name)
bench/running-time/index.js:72
↓ 1 callers
Function
showVersion
(print)
lib/utils.js:15
↓ 1 callers
Function
start
()
bench/size/index.js:36
↓ 1 callers
Function
which
(tool, check)
lib/executor.js:246
Function
add
(paths, opts = {})
lib/git.js:142
Function
apply
(patch, allowConflicts = false, opts = {})
lib/git.js:97
Function
applyModifications
(files = [])
lib/git-workflow.js:48
Function
backupOriginalState
()
lib/git-workflow.js:29
Function
backupUnstagedFiles
(files = [])
lib/git-workflow.js:37
Function
changedFiles
(refs = [], opts = {})
lib/git.js:217
Function
checkout
(paths, opts = {})
lib/git.js:151
Function
cleanUp
()
lib/git-workflow.js:88
Function
clear
()
lib/renderer.js:101
Method
constructor
(type, ...args)
lib/errors.js:11
Method
constructor
(errors)
lib/errors.js:19
Function
diff
(fileName, files = [], opts = {})
lib/git.js:69
Function
diffFileName
(ref1, ref2, opts = {})
lib/git.js:80
Function
error
(err)
lib/reporter.js:11
Function
exec
(args = [], opts = {})
lib/git.js:58
Function
generateCmdTasks
()
lib/cmd-runner.js:18
Function
getGitPaths
(opts = {})
lib/git.js:111
Function
hasPatch
(path = '')
lib/git-workflow.js:14
Function
loop
()
lib/renderer.js:136
Function
render
()
lib/renderer.js:118
Function
restoreOriginalState
()
lib/git-workflow.js:76
Function
restoreUnstagedFiles
(files = [])
lib/git-workflow.js:62
Function
run
()
lib/runner.js:12
Function
run
(parentTask)
lib/cmd-runner.js:68
Function
runTask
(parentTask)
lib/cmd-runner.js:99
Function
spin
(task)
lib/renderer.js:131
Function
stagedFiles
(opts = {})
lib/git.js:226
Function
start
(task)
lib/renderer.js:141
Function
status
(opts = {})
lib/git.js:160
Function
stop
()
lib/renderer.js:150
Function
unstagedFiles
(opts = {})
lib/git.js:249
Function
write
(str, clear = false)
lib/renderer.js:110