MCPcopy Index your code
hub / github.com/tinyhttp/tinyhttp / resolveSync

Function resolveSync

packages/favicon/src/index.ts:56–63  ·  view source on GitHub ↗
(iconPath: string)

Source from the content-addressed store, hash-verified

54 })
55
56function resolveSync(iconPath: string) {
57 const path = resolve(iconPath)
58 const s = statSync(path)
59
60 if (s.isDirectory()) throw createIsDirError(path)
61
62 return path
63}
64
65function send(req: Request, res: Response, icon: FaviconBody) {
66 // Set headers

Callers 1

faviconFunction · 0.85

Calls 1

createIsDirErrorFunction · 0.85

Tested by

no test coverage detected