(file)
| 2 | |
| 3 | module.exports = { |
| 4 | async readCode(file) { |
| 5 | const data = await fs.readFile(file, 'utf-8'); |
| 6 | return data; |
| 7 | }, |
| 8 | writeCode(file, data) { |
| 9 | const target = file.split('.')[0]; |
| 10 | fs.writeFile(`${target}.js`, data, 'utf-8'); |
nothing calls this directly
no outgoing calls
no test coverage detected