code: function getPresetName(file) {
    const packageJson = findUp.sync("package.json", { cwd: path.dirname(file) });
  
    if (packageJson) {
      return require(packageJson).name || file;
    }
  
    return file;
  }
docs: Get the package's name or the filename if nothing is found
  @param {*} file