()
| 177 | Buffer.byteLength(str, "utf-8"); |
| 178 | |
| 179 | const nextFileName = (): string => |
| 180 | `${config.outputFileName.replace(/\.json$/, "")}-${fileCounter}.json`; |
| 181 | |
| 182 | const writeBatchToFile = async (): Promise<void> => { |
| 183 | nextFileNameString = nextFileName(); |