MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / isTextLike

Function isTextLike

scripts/recover-project.mjs:162–175  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

160}
161
162function isTextLike(filePath) {
163 const ext = path.extname(filePath).toLowerCase()
164 return (
165 ext === '.ts' ||
166 ext === '.tsx' ||
167 ext === '.js' ||
168 ext === '.jsx' ||
169 ext === '.mjs' ||
170 ext === '.cjs' ||
171 ext === '.json' ||
172 ext === '.md' ||
173 ext === '.txt'
174 )
175}
176
177function extractInlineSource(text) {
178 const matches = Array.from(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected