This lib is inspired by getSteamFolders.
Install package first:
# npm
npm i get-egs-folders
# Yarn
yarn add get-egs-folders
Import functions by named import:
import { getEgsMainLocation, getAllEgsGames } from 'get-egs-folders'
const games = await getAllEgsGames();
console.log(games['Fortnite']);