(filePath: string)
| 96 | } |
| 97 | |
| 98 | function isKnownBinaryExtension(filePath: string): boolean { |
| 99 | return KNOWN_BINARY_EXTENSIONS.has(path.extname(filePath).toLowerCase()) |
| 100 | } |
| 101 | |
| 102 | function isLikelyBinarySample(sample: Uint8Array): boolean { |
| 103 | if (sample.length === 0) return false |
no test coverage detected