(stats: fs.Stats)
| 161 | const READ_CHUNK_BYTES = 64 * 1024; |
| 162 | |
| 163 | function assertRegularFile(stats: fs.Stats): void { |
| 164 | if (!stats.isFile()) throw new Error('Source path is not a regular file'); |
| 165 | } |
| 166 | |
| 167 | /** |
| 168 | * Read a source file without ever holding more than the limit plus one byte. |
no outgoing calls
no test coverage detected