(filename, options)
| 171 | } |
| 172 | |
| 173 | writeFile(filename, options) { |
| 174 | options = options || {}; |
| 175 | |
| 176 | const streamOptions = { |
| 177 | encoding: options.encoding || 'utf8', |
| 178 | }; |
| 179 | const stream = fs.createWriteStream(filename, streamOptions); |
| 180 | |
| 181 | return this.write(stream, options); |
| 182 | } |
| 183 | |
| 184 | async writeBuffer(options) { |
| 185 | const stream = new StreamBuf(); |