2.3.0 • Published 1 year ago

steam-game-path v2.3.0

Weekly downloads
21
License
GPL-3.0
Repository
github
Last release
1 year ago

Steam Game Path

How does it work?

It looks for the path with given game id, and returns both steam installation path and game's.

Installing

npm install steam-game-path

Example #1

import { getGamePath } from 'steam-game-path';

const data = getGamePath(730);

Exports

MethodDescriptionExampleReturned objects
getGamePath(gameId, findExecutable: boolean)Function that takes game id and returnsgetGamePath(730)Path Object
getSteamPath()Function that returns steam install path or nullgetSteamPath() //"E:\Program Files (x86)\Steam"string

Path Object Example

{
    game: {
        path: 'C:\\SteamLibrary\\steamapps\\common\\Counter-Strike Global Offensive',
        name: 'Counter-Strike: Global Offensive',
        executable?: Promise
    },
    steam: {
        path: 'E:\\Program Files (x86)\\Steam',
        libraries: [
            'C:\\SteamLibrary\\steamapps',
            'D:\\SteamLibrary\\steamapps',
            'E:\\Program Files (x86)\\Steam\\steamapps'
        ]
    }
}
2.3.0

1 year ago

2.2.4

1 year ago

2.2.1

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.2.0

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.0.7

5 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago