title: How to use Typescript Async/ await with promise in Node JS FS Module
body: <p>How to use Typescript async / await function and return typescript default promises in node js FS module and call other function upon promise resolved.</p>
  
  <p>Following is the code :</p>
  
  <pre><code>  if (value) {
       tempValue = value;
       fs.writeFile(FILE_TOKEN, value, WriteTokenFileResult);
              }
  
   function WriteTokenFileResult(err: any, data: any) {
          if (err) {
              console.log(err);
              return false;
          }
          TOKEN = tempValue;
          ReadGist(); // other FS read File call
      };
  </code></pre>