/*
 * Copyright (c) 2018, 2026, Oracle and/or its affiliates.
 * Licensed under The Universal Permissive License (UPL), Version 1.0
 * as shown at https://oss.oracle.com/licenses/upl/
 */
function writeFileSync(nd,filepath,src,options){if(typeof src!=="string"){let indent=options&&options.hasOwnProperty("indent")?options.indent:3;let replacer=options&&options.hasOwnProperty("replacer")?options.replacer:null;try{src=JSON.stringify(src,replacer,indent)}catch(e){console.log(`[ERROR] : writing to 'outPath' [${filepath}] JSON.stringify() failure : '${e.message}'`)}}nd.fs.writeFileSync(filepath,src)};module.exports={writeFileSync:writeFileSync};