Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TokenRollAI/curl-resume
/ functions
Functions
82 in github.com/TokenRollAI/curl-resume
⨍
Functions
82
◇
Types & classes
34
↓ 39 callers
Function
push
(text: string)
src/streamHandler.ts:15
↓ 21 callers
Function
sleep
(ms: number)
src/utils.ts:4
↓ 5 callers
Function
getRandomChar
()
src/utils.ts:10
↓ 4 callers
Function
fetch
( request: Request, env: Env, ctx: ExecutionContext )
src/index.ts:13
↓ 4 callers
Function
getSpeed
* 获取页面速度配置(应用速度倍率)
src/pageRenderer.ts:47
↓ 3 callers
Function
renderHalfBlock
* 使用 Half-Block (▀) 技术渲染
src/imageToAscii.ts:122
↓ 2 callers
Function
detectFormat
* 检测图片格式
src/imageToAscii.ts:199
↓ 2 callers
Function
fetchImageToAscii
( url: string, options: RenderOptions = {} )
src/imageToAscii.ts:302
↓ 2 callers
Function
generateAscii
(text: string, style: "simple" | "block" = "block")
src/asciiGenerator.ts:268
↓ 2 callers
Function
isLocalPath
* 判断是否为本地文件路径
scripts/preprocess-images.ts:142
↓ 2 callers
Function
isLocalPath
(src: string)
scripts/preprocess.ts:170
↓ 2 callers
Function
renderChar
* 标准字符渲染
src/imageToAscii.ts:168
↓ 2 callers
Function
renderChar
(pixels: Uint8Array, width: number, height: number)
scripts/preprocess-images.ts:114
↓ 2 callers
Function
renderChar
(pixels: Uint8Array, width: number, height: number)
scripts/preprocess.ts:145
↓ 2 callers
Function
renderHalfBlock
(pixels: Uint8Array, width: number, height: number)
scripts/preprocess-images.ts:82
↓ 2 callers
Function
renderHalfBlock
(pixels: Uint8Array, width: number, height: number)
scripts/preprocess.ts:113
↓ 2 callers
Function
renderRawPage
* 渲染 Raw 页面 (原始文本)
src/pageRenderer.ts:229
↓ 2 callers
Function
resizeImage
* 双线性插值缩放图片
src/imageToAscii.ts:79
↓ 2 callers
Function
rgbToAnsi256
* RGB 转 ANSI 256 色
src/imageToAscii.ts:45
↓ 2 callers
Function
rgbToAnsiTrueColor
* RGB 转 ANSI 真彩色 (24-bit)
src/imageToAscii.ts:36
↓ 2 callers
Function
rgbToAnsiTrueColor
(r: number, g: number, b: number, type: "fg" | "bg" = "fg")
scripts/preprocess-images.ts:63
↓ 2 callers
Function
rgbToAnsiTrueColor
(r: number, g: number, b: number, type: "fg" | "bg" = "fg")
scripts/preprocess.ts:94
↓ 1 callers
Function
compositeFrame
* 将当前帧合成到画布上(处理透明像素)
scripts/preprocess-images.ts:229
↓ 1 callers
Function
compositeFrame
( canvas: Buffer, frameData: Uint8Array, width: number, height: number )
scripts/preprocess.ts:246
↓ 1 callers
Function
decodeImage
* 解码图片数据
src/imageToAscii.ts:243
↓ 1 callers
Function
decodeJPEG
* 解码 JPEG 图片
src/imageToAscii.ts:231
↓ 1 callers
Function
decodePNG
* 解码 PNG 图片 (使用 UPNG.js - 纯 JS 实现)
src/imageToAscii.ts:218
↓ 1 callers
Function
detectFormat
(data: Buffer)
scripts/preprocess-images.ts:177
↓ 1 callers
Function
detectFormat
(data: Buffer)
scripts/preprocess.ts:199
↓ 1 callers
Function
extractImageConfigs
(configPath: string)
scripts/preprocess-images.ts:318
↓ 1 callers
Function
extractImageConfigs
(configPath: string)
scripts/preprocess.ts:335
↓ 1 callers
Function
extractMarkdownConfigs
(configPath: string)
scripts/preprocess.ts:370
↓ 1 callers
Function
fetchGifToAsciiFrames
( url: string, options: RenderOptions = {} )
src/imageToAscii.ts:324
↓ 1 callers
Function
fetchImageData
* 获取图片数据(支持本地文件和 URL)
scripts/preprocess-images.ts:159
↓ 1 callers
Function
fetchImageData
(src: string)
scripts/preprocess.ts:181
↓ 1 callers
Function
generateTestPattern
(width = 40, height = 20)
src/imageToAscii.ts:381
↓ 1 callers
Function
getSpeedMultiplier
* 获取速度倍率
src/pageRenderer.ts:63
↓ 1 callers
Function
grayToChar
* 灰度转 ASCII 字符
src/imageToAscii.ts:27
↓ 1 callers
Function
grayToChar
(gray: number)
scripts/preprocess-images.ts:75
↓ 1 callers
Function
grayToChar
(gray: number)
scripts/preprocess.ts:106
↓ 1 callers
Function
imageToAsciiResult
* 图片数据转 ASCII
src/imageToAscii.ts:259
↓ 1 callers
Function
main
()
scripts/preprocess-images.ts:361
↓ 1 callers
Function
main
()
scripts/preprocess.ts:391
↓ 1 callers
Function
processGifAnimation
(data: Buffer, config: ImageConfig)
scripts/preprocess-images.ts:247
↓ 1 callers
Function
processGifAnimation
(data: Buffer, config: ImageConfig)
scripts/preprocess.ts:263
↓ 1 callers
Function
processImage
(config: ImageConfig)
scripts/preprocess-images.ts:298
↓ 1 callers
Function
processImage
(config: ImageConfig)
scripts/preprocess.ts:308
↓ 1 callers
Function
processMarkdown
(config: MarkdownConfig)
scripts/preprocess.ts:326
↓ 1 callers
Function
processStaticImage
(data: Buffer, config: ImageConfig)
scripts/preprocess-images.ts:195
↓ 1 callers
Function
processStaticImage
(data: Buffer, config: ImageConfig)
scripts/preprocess.ts:217
↓ 1 callers
Function
renderAllPages
( push: PushFunction, config: Config )
src/pageRenderer.ts:253
↓ 1 callers
Function
renderImagePage
* 渲染 Image 页面 (图片转 ASCII) * 优先使用预处理数据,否则实时处理
src/pageRenderer.ts:153
↓ 1 callers
Function
renderLogoPage
* 渲染 Logo 页面
src/pageRenderer.ts:70
↓ 1 callers
Function
renderMarkdown
(markdown: string)
src/markdownRenderer.ts:9
↓ 1 callers
Function
renderMarkdownPage
* 渲染 Markdown 页面 * 优先使用预处理数据,否则实时渲染
src/pageRenderer.ts:117
↓ 1 callers
Function
renderMarkdownToTerminal
(markdown: string)
scripts/preprocess.ts:83
↓ 1 callers
Function
resolveImagePath
* 解析图片路径(支持相对路径)
scripts/preprocess-images.ts:149
↓ 1 callers
Function
resolveImagePath
(src: string)
scripts/preprocess.ts:174
↓ 1 callers
Function
rgbToGray
* RGB 转灰度
src/imageToAscii.ts:20
↓ 1 callers
Function
rgbToGray
(r: number, g: number, b: number)
scripts/preprocess-images.ts:71
↓ 1 callers
Function
rgbToGray
(r: number, g: number, b: number)
scripts/preprocess.ts:102
↓ 1 callers
Function
streamResume
( writer: WritableStreamDefaultWriter )
src/streamHandler.ts:12
Function
addBorder
(ascii: string)
src/asciiGenerator.ts:306
Function
animatedLine
( push: PushFunction, options: { width?: number; char?: string; speed?: number } = {} )
src/effects.ts:367
Function
createPusher
(writer: WritableStreamDefaultWriter)
src/effects.ts:10
Function
effectDecrypt
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:130
Function
effectGlitch
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:174
Function
effectMatrix
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:213
Function
effectNone
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:91
Function
effectTyping
( push: PushFunction, text: string, options: EffectOptions = {} )
src/effects.ts:103
Function
endingBlink
( push: PushFunction, times = 3 )
src/effects.ts:384
Function
generateColorTestPattern
(width = 40, height = 20, trueColor = false)
src/imageToAscii.ts:396
Function
getEffect
( name: string )
src/effects.ts:268
Function
getTransition
( name: string )
src/effects.ts:72
Function
lightWaveEffect
( push: PushFunction, lines: string[], speed = 40 )
src/effects.ts:292
Function
playAsciiAnimation
( push: PushFunction, frames: Array<{ ascii: string; coloredAscii?: string; delay: number }>, options: {
src/effects.ts:399
Function
scanDisplay
( push: PushFunction, lines: string[], options: { speed?: number; scanChar?: string; color?: string } =
src/effects.ts:344
Function
stylizeAscii
( ascii: string, style: "full" | "light" | "double" = "full" )
src/asciiGenerator.ts:289
Function
transitionFade
(push: PushFunction)
src/effects.ts:28
Function
transitionGlitch
(push: PushFunction)
src/effects.ts:36
Function
transitionNone
(push: PushFunction)
src/effects.ts:21
Function
transitionScanline
(push: PushFunction)
src/effects.ts:58