2.0.3 • Published 4 months ago
steamcmd.js v2.0.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 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