1.5.3 • Published 5 years ago
steamcmd-wrapper v1.5.3
SteamCMD-Wrapper allows to you use SteamCMD on NodeJS. You can use many features of SteamCMD and get command responses.
Usage
With npm installed, run
> npm install steamcmd-wrapperImport
const {SteamCMD,Downloader} = require('steamcmd-wrapper');Features
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