* Opinionated writing of files to a path. * * Expects files to be an object where each sub * object has properties filename and contents.
(files, directoryPath)
| 13 | * object has properties filename and contents. |
| 14 | */ |
| 15 | function writeFilesToPath (files, directoryPath) { |
| 16 | _.forOwn(files, function (key, value) { |
| 17 | fs.writeFileSync(path.resolve(directoryPath, files[value].filename), files[value].contents); |
| 18 | }); |
| 19 | } |
no outgoing calls
no test coverage detected