title: how get file size in bytes through gulp task
body: <p>I have an APK file in my source folder and I just want to get the size of that file (in bytes) with a gulp task and update that size in an XML file.</p>
  
  <p>Below is my gulp task:</p>
  
  <pre class="lang-js prettyprint-override"><code>gulp.task('geteditmscript', function(){
      gulp.src("source/deployment.xml")
          .pipe(xeditor([
              {path: '//SCRIPT', attr: {'revision': json.version}},
              {path: '//APP', attr: {'size': gulp.src('source/*.apk').pipe(size())}}
          ]))
          .pipe(gulp.dest("source/"));
  });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/nBjDU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nBjDU.png" alt="enter image description here"></a></p>