(stats: fs.Stats)
| 113 | const READ_CHUNK_BYTES = 64 * 1024; |
| 114 | |
| 115 | function assertRegularFile(stats: fs.Stats): void { |
| 116 | if (!stats.isFile()) throw new Error('Source path is not a regular file'); |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Read a source file without ever holding more than the limit plus one byte. |
no outgoing calls
no test coverage detected