🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@kabeep/node-steam-library

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kabeep/node-steam-library

Obtain the installation directory and application list of Steam through the Windows registry.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

node-steam-library

Obtain the installation directory and application list of Steam through the Windows registry.

English | 简体中文

Alt

📖 Introduction

[!IMPORTANT] Only Windows supported.

Node module that interacts with the Steam installation on a user's system. This library provides utilities to get Steam root path, retrieve Steam library information, and list installed apps.

⚙️ Installation

npm install @kabeep/node-steam-library --save
yarn add @kabeep/node-steam-library
pnpm add @kabeep/node-steam-library

🚀 Usage

CommonJS

const steamLib = require('@kabeep/node-steam-library');

or ESModule

import steamLib from '@kabeep/node-steam-library';

Methods: getRootPath()

Retrieve the installation path of Steam from the Windows registry.

steamLib.getRootPath
    .then(console.log)
    .catch(console.error);

Returns: Promise<string>

Methods: getLibrary()

Retrieve the Steam library information.

steamLib.getLibrary
    .then(console.log)
    .catch(console.error);

Returns: Promise<SteamLibraryOption[]>

SteamLibraryOption:

PropertyTypeDescriptionExample
librarystringPath to the library folder"G:\\path\\to\\SteamLibrary"
idstringApps ID"321"

Methods: getApps()

Retrieve all the application information of the Steam library.

steamLib.getApps
    .then(console.log)
    .catch(console.error);

Returns: Promise<SteamAppOption[]>

SteamAppOption:

PropertyTypeDescriptionExample
idnumberApps ID321
namestringApps name"Counter-Strike: Global Offensive"
installPathstringApps install path"G:\\path\\to\\SteamLibrary\\Counter-Strike: Global Offensive"
modPathstringApps mod path"G:\\path\\to\\SteamLibrary\\Counter-Strike: Global Offensive\\steamapps\\workshop\\content\\321"
languagestringApps locale"english"
  • vdf - Module to convert Valve's KeyValue format to JSON and back.
  • node-winreg - node module that provides access to the Windows Registry through the REG commandline tool.

🤝 Contribution

Contributions via Pull Requests or Issues are welcome.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

nodejs

FAQs

Package last updated on 17 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts