Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abinthomasonline/repo2txt
/ functions
Functions
234 in github.com/abinthomasonline/repo2txt
⨍
Functions
234
◇
Types & classes
73
↓ 27 callers
Method
validateUrl
* Validate a URL for this provider * @param url - URL to validate * @returns True if valid, false otherwise
src/lib/providers/types.ts:71
↓ 21 callers
Method
getNode
* Get a node by path
src/lib/file-tree/FileTree.ts:28
↓ 17 callers
Function
sanitizeFilename
(name: string)
src/lib/utils/repoName.ts:8
↓ 15 callers
Method
parseUrl
* Parse a URL to extract repository information * @param url - URL to parse * @returns Parsed repository information
src/lib/providers/types.ts:78
↓ 14 callers
Method
execute
* Execute a function with rate limiting
src/lib/utils/rateLimiter.ts:25
↓ 14 callers
Method
initialize
* Initialize with directory files or zip file
src/features/local/LocalProvider.ts:67
↓ 13 callers
Method
clear
* Clear all nodes
src/lib/file-tree/FileTree.ts:281
↓ 12 callers
Method
fetchTree
* Fetch the file tree from the repository * @param url - Repository URL or identifier * @param options - Additional fetch options * @returns
src/lib/providers/types.ts:45
↓ 12 callers
Method
getAllNodes
* Get all nodes
src/lib/file-tree/FileTree.ts:42
↓ 12 callers
Function
setCredentials
* Set authentication credentials
src/lib/providers/BaseProvider.ts:44
↓ 11 callers
Function
extractGitHubRepoName
(url: string)
src/lib/utils/repoName.ts:24
↓ 8 callers
Function
extractAzureRepoName
(url: string)
src/lib/utils/repoName.ts:71
↓ 8 callers
Function
extractGitLabRepoName
(url: string)
src/lib/utils/repoName.ts:46
↓ 8 callers
Method
getActiveCount
* Get current active request count
src/lib/utils/rateLimiter.ts:79
↓ 8 callers
Method
getRepoInfo
* Get metadata about the current repository
src/lib/providers/types.ts:64
↓ 8 callers
Method
setCredentials
* Set authentication credentials
src/lib/providers/types.ts:37
↓ 7 callers
Function
createMockFileList
(files: MockFile[])
src/features/local/__tests__/LocalProvider.test.ts:22
↓ 7 callers
Function
extractLocalName
(files: FileList | File)
src/lib/utils/repoName.ts:93
↓ 7 callers
Method
getExtension
* Get the file extension
src/lib/file-tree/FileNode.ts:46
↓ 6 callers
Method
fetchFile
* Fetch content of a single file * @param node - File node to fetch * @returns File content
src/lib/providers/types.ts:52
↓ 6 callers
Method
getName
* Get a human-readable name for this provider
src/lib/providers/types.ts:27
↓ 6 callers
Method
isDirectory
* Check if this is a directory (tree)
src/lib/file-tree/FileNode.ts:62
↓ 5 callers
Method
applyGitignore
* Apply gitignore patterns
src/lib/file-tree/FileTree.ts:135
↓ 5 callers
Function
getTokenizerWorker
()
src/lib/formatter/TokenizerWorker.ts:156
↓ 5 callers
Method
isChildOf
* Check if this node is a child of the given path
src/lib/file-tree/FileNode.ts:76
↓ 5 callers
Method
isFile
* Check if this is a file (blob)
src/lib/file-tree/FileNode.ts:55
↓ 5 callers
Method
size
* Get total number of nodes
src/lib/file-tree/FileTree.ts:274
↓ 5 callers
Method
tokenizeBatch
* Tokenize multiple files with progress callback
src/lib/formatter/TokenizerWorker.ts:90
↓ 4 callers
Method
buildGitHubHeaders
* Build GitHub-specific headers with authentication
src/features/github/GitHubProvider.ts:288
↓ 4 callers
Function
createProvider
(type: ProviderType)
src/lib/providers/ProviderFactory.ts:24
↓ 4 callers
Function
getFileExtension
(path: string)
src/store/slices/fileTreeSlice.ts:355
↓ 4 callers
Function
handleProviderChange
(provider: ProviderType)
src/components/ProviderSelector.tsx:34
↓ 4 callers
Function
isProviderRegistered
(type: ProviderType)
src/lib/providers/ProviderFactory.ts:41
↓ 4 callers
Method
reset
* Reset the provider state
src/lib/providers/types.ts:83
↓ 4 callers
Method
selectNode
* Select a node by path
src/lib/file-tree/FileTree.ts:77
↓ 3 callers
Method
fetchMultiple
* Fetch multiple files with progress tracking * @param nodes - Array of file nodes to fetch * @returns Async generator yielding file contents
src/lib/providers/types.ts:59
↓ 3 callers
Method
generateDirectoryTree
* Generate ASCII directory tree
src/lib/formatter/Formatter.ts:76
↓ 3 callers
Function
getDefaultFilename
(prefix: string = 'repo')
src/lib/utils/repoName.ts:115
↓ 3 callers
Method
getDepth
* Get depth level in the tree (number of slashes)
src/lib/file-tree/FileNode.ts:69
↓ 3 callers
Method
getQueueLength
* Get queue length
src/lib/utils/rateLimiter.ts:86
↓ 3 callers
Method
getType
* Get the type of this provider
src/lib/providers/types.ts:22
↓ 3 callers
Method
handleFetchError
* Override error handling for GitHub-specific errors
src/features/github/GitHubProvider.ts:304
↓ 3 callers
Method
requiresAuth
* Check if this provider requires authentication
src/lib/providers/types.ts:32
↓ 3 callers
Method
selectDirectory
* Select all nodes in a directory (recursively)
src/lib/file-tree/FileTree.ts:107
↓ 3 callers
Method
tokenize
* Tokenize single text
src/lib/formatter/TokenizerWorker.ts:59
↓ 3 callers
Function
traverse
(nodes: TreeNode[], depth: number)
src/components/file-tree/FileTree.tsx:28
↓ 2 callers
Method
addNodes
* Add nodes to the tree
src/lib/file-tree/FileTree.ts:18
↓ 2 callers
Method
buildAzureHeaders
* Build Azure DevOps-specific headers with authentication
src/features/azure/AzureDevOpsProvider.ts:203
↓ 2 callers
Method
buildGitLabHeaders
* Build GitLab-specific headers with authentication
src/features/gitlab/GitLabProvider.ts:212
↓ 2 callers
Function
buildTree
(nodes: FileNode[], options: TreeBuilderOptions)
src/lib/tree-builder.ts:18
↓ 2 callers
Method
clone
* Clone the tree
src/lib/file-tree/FileTree.ts:216
↓ 2 callers
Method
countTokens
* Count tokens using GPT tokenizer
src/lib/formatter/Formatter.ts:122
↓ 2 callers
Method
delay
* Utility: delay execution
src/lib/utils/rateLimiter.ts:101
↓ 2 callers
Function
extractDirectories
(nodes: FileNode[])
src/lib/tree-builder.ts:100
↓ 2 callers
Method
filterByExtension
* Filter nodes by extension
src/lib/file-tree/FileTree.ts:118
↓ 2 callers
Method
generateFileContents
* Generate file contents section
src/lib/formatter/Formatter.ts:101
↓ 2 callers
Method
getDirectory
* Get the directory path (excluding filename)
src/lib/file-tree/FileNode.ts:38
↓ 2 callers
Method
getExtensionCounts
* Get file count by extension
src/lib/file-tree/FileTree.ts:195
↓ 2 callers
Method
getFileNodes
* Get only file nodes (blobs)
src/lib/file-tree/FileTree.ts:49
↓ 2 callers
Function
getLabel
()
src/components/ui/ThemeToggle.tsx:23
↓ 2 callers
Method
getVisibleNodes
* Get visible nodes (not excluded)
src/lib/file-tree/FileTree.ts:63
↓ 2 callers
Method
handleFetchError
* Override error handling for Azure DevOps-specific errors
src/features/azure/AzureDevOpsProvider.ts:222
↓ 2 callers
Method
handleFetchError
* Override error handling for GitLab-specific errors
src/features/gitlab/GitLabProvider.ts:243
↓ 2 callers
Function
handleFile
(file: File)
src/features/local/components/ZipUploader.tsx:45
↓ 2 callers
Function
handleTabChange
(tab: TabType)
src/features/local/components/LocalForm.tsx:22
↓ 2 callers
Method
hasNode
* Check if a node exists
src/lib/file-tree/FileTree.ts:35
↓ 2 callers
Method
terminate
* Terminate the worker
src/lib/formatter/TokenizerWorker.ts:144
↓ 2 callers
Method
toJSON
* Convert to plain object for serialization
src/lib/file-tree/FileNode.ts:83
↓ 2 callers
Method
toggleSelection
* Toggle selection of a node
src/lib/file-tree/FileTree.ts:97
↓ 1 callers
Method
buildFileUrl
* Build file content URL for GitLab API
src/features/gitlab/GitLabProvider.ts:171
↓ 1 callers
Method
clear
* Clear the queue
src/lib/utils/rateLimiter.ts:93
↓ 1 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils/cn.ts:8
↓ 1 callers
Function
createFileTreeSlice
(set, get)
src/store/slices/fileTreeSlice.ts:55
↓ 1 callers
Function
createProviderSlice
(set)
src/store/slices/providerSlice.ts:30
↓ 1 callers
Function
createThemeSlice
(set, get)
src/store/slices/themeSlice.ts:11
↓ 1 callers
Function
createUISlice
(set, get)
src/store/slices/uiSlice.ts:26
↓ 1 callers
Method
deselectNode
* Deselect a node by path
src/lib/file-tree/FileTree.ts:87
↓ 1 callers
Method
executeAll
* Execute multiple functions with rate limiting
src/lib/utils/rateLimiter.ts:55
↓ 1 callers
Method
extractBranchFromPath
* Extract branch from branchAndPath (before first slash or entire string)
src/features/gitlab/GitLabProvider.ts:228
↓ 1 callers
Method
extractDirectoryName
* Extract directory name from FileList
src/features/local/LocalProvider.ts:235
↓ 1 callers
Method
extractPathFromLastString
* Extract path from branchAndPath (everything after branch)
src/features/gitlab/GitLabProvider.ts:235
↓ 1 callers
Method
fetchReferences
* Fetch references (branches and tags)
src/features/github/GitHubProvider.ts:133
↓ 1 callers
Method
fetchTree
* Fetch tree from local files
src/features/local/LocalProvider.ts:108
↓ 1 callers
Method
fetchTreeRecursive
* Fetch complete file tree recursively using Items API
src/features/azure/AzureDevOpsProvider.ts:139
↓ 1 callers
Method
fetchTreeRecursive
* Fetch complete file tree recursively
src/features/github/GitHubProvider.ts:222
↓ 1 callers
Method
fetchTreeRecursive
* Fetch complete file tree recursively from GitLab
src/features/gitlab/GitLabProvider.ts:145
↓ 1 callers
Method
fetchTreeSha
* Fetch tree SHA for a specific ref/path
src/features/github/GitHubProvider.ts:199
↓ 1 callers
Function
flattenTree
* Flatten tree structure for virtual scrolling
src/components/file-tree/FileTree.tsx:22
↓ 1 callers
Function
fn
()
src/lib/utils/__tests__/rateLimiter.test.ts:35
↓ 1 callers
Method
formatAsync
* Format tree structure and file contents into output text (async with Web Worker)
src/lib/formatter/Formatter.ts:32
↓ 1 callers
Function
getCheckboxState
()
src/components/file-tree/FileTreeNode.tsx:68
↓ 1 callers
Method
getDirectoryNodes
* Get only directory nodes (trees)
src/lib/file-tree/FileTree.ts:56
↓ 1 callers
Function
getFileIcon
()
src/components/file-tree/FileTreeNode.tsx:47
↓ 1 callers
Function
getIcon
()
src/components/ui/ThemeToggle.tsx:17
↓ 1 callers
Method
getLanguageFromExtension
* Get language identifier for syntax highlighting
src/lib/formatter/Formatter.ts:164
↓ 1 callers
Method
getName
* Get the file name from the path
src/lib/file-tree/FileNode.ts:30
↓ 1 callers
Function
getProviderForUrl
(url: string)
src/lib/providers/ProviderFactory.ts:56
↓ 1 callers
Function
getRegisteredProviders
()
src/lib/providers/ProviderFactory.ts:48
↓ 1 callers
Method
getSelectedNodes
* Get selected nodes
src/lib/file-tree/FileTree.ts:70
↓ 1 callers
Function
handleAddSuggestion
(pattern: string)
src/components/filters/GitIgnoreEditor.tsx:71
next →
1–100 of 234, ranked by callers