function promptUser() {
  return inquirer
    .prompt([
      {
        type: "list",
        name: "env",
        message: "Where does your code run?",
        default: ["browser"],
        choices: [
          { name: "Browser", value: "browser" },
          { name: "Node", value: "node" }
        ]
      },
      {
        type: "checkbox",
        name: "images",
        message: "Which ImageTypes should be supported?",
        default: ["jpeg_support", "bmp_support", "gif_support", "webp_support"],
        choices: [
          { name: "Jpeg", value: "jpeg_support" },
          { name: "Bmp", value: "bmp_support" },
          { name: "Gif", value: "gif_support" },
          { name: "WebP", value: "webp_support" }
        ]
      },
      {
        type: "checkbox",
        name: "modules",
        message: "Additional Modules",
        default: [
          "acroform",
          "annotations",
          "arabic",
          "autoprint",
          "context2d",
          "fileloading",
          "filters",
          "html",
          "javascript",
          "outline",
          "setlanguage",
          "svg",
          "total_pages",
          "utf8",
          "viewerpreferences",
          "xmp_metadata"
        ],
        choices: [
          { name: "Acroform", value: "acroform" },
          { name: "Annotations", value: "annotations" },
          { name: "Arabic Parser", value: "arabic" },
          { name: "Autoprint", value: "autoprint" },
          { name: "Context2d", value: "context2d" },
          { name: "File Loading", value: "fileloading" },
          { name: "Filters", value: "filters" },
          { name: "HTML", value: "html" },
          { name: "Javascript", value: "javascript" },
          { name: "Outline", value: "outline" },
          { name: "Language-Tagging", value: "setlanguage" },
          { name: "SVG", value: "svg" },
          { name: "TotalPages", value: "total_pages" },
          { name: "Unicode", value: "utf8" },
          { name: "ViewerPreferences", value: "viewerpreferences" },
          { name: "XMP Metadata", value: "xmp_metadata" }
        ]
      }
    ])
    .then(result => {
      console.log(generateFileList([...result.images, ...result.modules]));
    });
}
Ask use a few questions on command prompt
@returns {Promise} The promise with the result of the prompt