(filename, compress, result)
| 65 | * @param {any} result |
| 66 | */ |
| 67 | const write = async function (filename, compress, result) { |
| 68 | const content = JSON.stringify(result); |
| 69 | |
| 70 | const data = compress ? await gzip(content) : content; |
| 71 | return await writeFile(filename + (compress ? ".gz" : ""), data); |
| 72 | }; |
| 73 | |
| 74 | /** |
| 75 | * Build the filename for the cached file |
no outgoing calls
no test coverage detected
searching dependent graphs…