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 |
With npm installed, run
> npm i steamcmd.js
Import
import steamCMD from 'steamcmd.js';
Commands | SteamCMD.js | |
login | ✔️ | login |
force_install_dir | ✔️ | forceDir |
app_update | ✔️ | appUpdate |
workshop_download_item | ✔️ | workshopDownload |
-
Windows
var sClient= new steamCMD({bin:"steamcmd.exe"})
-
Linux
var sClient= new steamCMD({bin:"./steamcmd.sh"})
await sClient.create();
var res= await sClient.login({
username: "anonymous",
//password: "",
//code: ""
});
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);
}
});
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