(stats: fs.Stats)
| 58 | const READ_CHUNK_BYTES = 64 * 1024; |
| 59 | |
| 60 | function assertRegularFile(stats: fs.Stats): void { |
| 61 | if (!stats.isFile()) throw new Error('Source path is not a regular file'); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Read a source file without ever holding more than the limit plus one byte. |
no outgoing calls
no test coverage detected