index.js
function stat(file, cb) {
  utils.fileExists(file);
  utils.fs.stat(file.path, function(err, stat) {
    if (err) {
      file.stat = null;
      cb(err, file);
      return;
    }
    file.stat = stat;
    cb(null, file);
  });
}
function stat(file, cb) {
  utils.fileExists(file);
  utils.fs.stat(file.path, function(err, stat) {
    if (err) {
      file.stat = null;
      cb(err, file);
      return;
    }
    file.stat = stat;
    cb(null, file);
  });
}
function stat ( file , cb ) { utils . fileExists ( file ) ; utils . fs . stat ( file . path , function ( err , stat ) { if ( err ) { file . stat = null ; cb ( err , file ) ; return ; } file . stat = stat ; cb ( null , file ) ; } ) ; }
Asynchronously add a `stat` property from `fs.stat` to the given file object.

```js
var File = require('vinyl');
var stats = require('{%= name %}');
stats.stat(new File({path: 'README.md'}), function(err, file) {
console.log(file.stat.isFile());
//=> true
});
```
@name .stat
@param {Object} `file` File object
@param {Function} `cb`
@api public
Asynchronously add a stat property from fs . stat to the given file object .