Skip to content

ErenKrt/SteamCMD.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

With npm installed, run

> npm i steamcmd.js

Import

import steamCMD from 'steamcmd.js';

Features

Commands SteamCMD.js
login ✔️ login
force_install_dir ✔️ forceDir
app_update ✔️ appUpdate
workshop_download_item ✔️ workshopDownload

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published