( path, json )
| 48 | * @param {Object} json The JS object to be serialised |
| 49 | */ |
| 50 | const writeJSON = ( path, json ) => writeFileAsync( |
| 51 | path, |
| 52 | `${JSON.stringify( json, null, 2 )}\n`, |
| 53 | { flag: 'w' }, |
| 54 | ) |
| 55 | |
| 56 | /** |
| 57 | * Removes the .json extension from the given path. |
no outgoing calls
no test coverage detected
searching dependent graphs…