New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

steamcmd-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steamcmd-wrapper

SteamCMD wrapper for NodeJS

latest
npmnpm
Version
1.5.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

SteamCMD-Wrapper allows to you use SteamCMD on NodeJS. You can use many features of SteamCMD and get command responses.

Built with ❤︎ by EpEren

| Usage Examples Usage examples Features |

Usage

With npm installed, run

> npm install steamcmd-wrapper

Import

const {SteamCMD,Downloader} = require('steamcmd-wrapper');

Features

SteamCmd CommandsAvaible at Wrapper
login✔️Login
app_update✔️AppUpdate
workshop_download_item✔️WorkshopDownload
exit✔️Exit

Examples

Ready to work !

  • Windows

    var Wrapper= new SteamCMD({BinDir:"steamcmd.exe"})
    
  • Linux

    var Wrapper= new SteamCMD({BinDir:"./steamcmd.sh"})
    
(async function(){
    await Wrapper.Create(function(data){
        console.log(data)
    })
})()

Usage Examples

Login

  • (1)

    var Login= await Wrapper.Login({
        Username:"<YOUR NAME>",
        Password:"<YOUR PASS>",
        Guard:"<YOUR GUARD CODE>",
    });
    if(Login.type==0){
        // Work area
    }else{
        console.log(Login.message);
    }
    
  • ShowCode (2)

Download App

  • (1)

    
    function CallBackForDownload(data){
        console.log(data)
    }
    
    var DownloadAPP= await Wrapper.AppUpdate(
        {
            InstPath:"example/gamefolder/",
            AppID:610360,
            Validate:true,
            cb:CallBackForDownload
        }
    )
    
  • Show Code (2)

Download SteamCMD

  • (1)
    
    var Down= await Downloader.Download("./test/",function(data){
        console.log(data);
    });
    
    console.log("Downloaded !");
    
  • Show Code (2)

Developer: © ErenKrt

FAQs

Package last updated on 26 Nov 2020

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