steamcmd.js
v2.0.3
Published
SteamCMD-Wrapper allows to you use [SteamCMD](https://developer.valvesoftware.com/wiki/SteamCMD) on [NodeJS](https://nodejs.org). You can use many features of SteamCMD and get command responses. <div align="center"> <a href="https://www.npmjs.com/pack
Downloads
9
Readme
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 i steamcmd.js
Import
import steamCMD from 'steamcmd.js';
Features
Examples
Windows
var sClient= new steamCMD({bin:"steamcmd.exe"})
Linux
var sClient= new steamCMD({bin:"./steamcmd.sh"})
Login
await sClient.create();
var res= await sClient.login({
username: "anonymous",
//password: "",
//code: ""
});
Download App
await sClient.create();
await sClient.forceDir({
path: "E:\\Test"
});
var loginRes= await sClient.login({
username: "anonymous",
});
var res= await sClient.appUpdate({
id: "105600",
cb: (data)=>{
console.log(data);
}
});
Download Workshop
await sClient.create();
await sClient.forceDir({
path: "E:\\Test"
});
var loginRes= await sClient.login({
username: "anonymous",
});
var res= await sClient.workshopDownload({
id: "2005463692", // workshop item id
appId: "602960"
});
Developer: © ErenKrt