lib/util.js
function(file) {
    var filePath = path.resolve(file);

    if (filePath) {
      if (!fs.existsSync(filePath)) {
        fse.ensureFileSync(filePath);
      }
      return filePath;
    }

    return false;
  }
function(file) {
    var filePath = path.resolve(file);

    if (filePath) {
      if (!fs.existsSync(filePath)) {
        fse.ensureFileSync(filePath);
      }
      return filePath;
    }

    return false;
  }
function ( file ) { var filePath = path . resolve ( file ) ; if ( filePath ) { if ( ! fs . existsSync ( filePath ) ) { fse . ensureFileSync ( filePath ) ; } return filePath ; } return false ; }
Resolves file path, and ensures the file exist.

@param {string} file - File path.
@returns {string|boolean} Resolved file path, or false if path cannot be
created.
Resolves file path and ensures the file exist .