(src, replacements, dst = src)
| 165 | }); |
| 166 | |
| 167 | const copyWithReplace = async (src, replacements, dst = src) => |
| 168 | await promises.writeFile( |
| 169 | dst, |
| 170 | replacements.reduce( |
| 171 | (file, [from, to]) => file.replaceAll(from, to), |
| 172 | await promises.readFile(src, UTF8), |
| 173 | ), |
| 174 | UTF8, |
| 175 | ); |
| 176 | |
| 177 | const gzipFile = async (fileName) => |
| 178 | await promises.writeFile( |
no outgoing calls
no test coverage detected
searching dependent graphs…