2.0.3 • Published 4 months ago

steamcmd.js v2.0.3

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

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

2.0.3

4 months ago

2.0.2

4 months ago

2.0.1

4 months ago

0.1.0

9 months ago