steam-game-path
It looks for the path with given game id, and returns both steam installation path and game's.
Last updated 5 months ago by osztenkurden .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install steam-game-path 
SYNC missed versions from official npm registry.

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

Method Description Example Returned objects
getGamePath Function that takes game id and returns getGamePath(730) Path Object
getSteamPath() Function that returns steam install path or null getSteamPath() //"E:\Program Files (x86)\Steam" string

Path Object Example

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

Current Tags

  • 0.0.7                                ...           latest (5 months ago)

7 Versions

  • 0.0.7                                ...           5 months ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |