@lexogrine/steam-path-finder
v1.0.1
Published
Steam Path & Games Finder
Readme
steam-path-finder
Lightweight Steam Path Finder
This is a library to find the Steam installation path and read the libraryfolders.vdf file to get the paths and basic info of installed Steam applications.
Supports:
- Windows (by registry)
- Linux (most package managers, flatpack, snap)
- FreeBSD
- macOS (default path)
Installation
npm install steam-path-finderUsage
import { findSteamRootPath, getSteamInstallation } from 'steam-path-finder';
const steamPath = await findSteamRootPath();
console.log(`Steam is installed at: ${steamPath}`);
const installation = await getSteamInstallation();
const installedApps = installation.getAppIds();
console.log('Installed Steam Apps:', installedApps);
const CS2Info = installation.getAppInfo('730');
console.log(`CS2 is installed at: ${CS2Info?.path}`);API
findSteamRootPath(): Promise<string | undefined>- Returns a promise that resolves to the Steam installation path orundefinedif not found.getSteamInstallation(): Promise<SteamInstallation | { error: string }>- Returns a promise that resolves to an instance ofSteamInstallationwhich can be used to get library paths and installed apps, or an error object.SteamInstallation.getLibraryPaths(): string[]- Returns an array of all Steam library paths.SteamInstallation.getAppIds(): string[]- Returns an array of installed app IDs.SteamInstallation.getInstallationPath(appId: string): string | undefined- Returns the installation path for a specific app ID orundefinedif not installed.SteamInstallation.getAppInfo(appId: string): AppInfo | undefined- Returns detailed information about a specific app ID orundefinedif not installed.
License
This project is licensed under the MIT License.
About
Lexogrine is a premier Node.js development company and AI software development house, delivering high-end AI, web, and mobile design services to a global clientele. In addition to bespoke development, Lexogrine provides a suite of innovative applications, such as LHM.gg, designed to transform professional collaboration and streamline industry-specific workflows.
We specialize in cutting-edge AI development, complemented by robust web, mobile, and cloud solutions. Our core tech stack includes TypeScript, Python, LLMs, React, React Native, Node.js, Prisma, Medusa, PyTorch, AWS, and Google Cloud Platform.
With a proven track record spanning over 5 years, Lexogrine has successfully delivered hundreds of projects, empowering businesses and enterprises worldwide with scalable, future-proof technology.
