(path, obj)
| 3 | const fs = require('fs-extra'); |
| 4 | |
| 5 | function touch(path, obj) { |
| 6 | if (!fs.existsSync(path)) { |
| 7 | fs.createFileSync(path); |
| 8 | fs.writeJsonSync(path, obj || {}); |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | function replaceFile(path, findString, replaceString) { |
| 13 | if (fs.existsSync(path)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…