title: How to save returned protobuf object in nodejs?
body: <p>In my code, a function is returning a protobuf object and I want to save it in a file xyz.pb.<br>
  When I am trying to save it using fs.writefilesync it is not saving it.  </p>
  
  <p>It is circular in nature. So, I tried to save it using circular-json module to confirm if there is anything inside it and it has data.  </p>
  
  <p>But, as I used circular-json in the first place it doesn't have the proper information(not properly formatted) and it is of no use.  </p>
  
  <p>How can I save this protobuf in a file using nodejs?</p>
  
  <p>Thanks!</p>