steam-workshop

0.0.5 • Public • Published

Steam Workshop

Build Status Dependency Status

Download files and collections from Steam Workshop

Module

Install module

npm install steam-workshop

Require the module in your code and create a new Workshop object. It requires one argument for the output folder where downloaded files will be saved.

var SteamWorkshop = require('steam-workshop');
var steamWorkshop = new SteamWorkshop(outputFolder);

SteamWorkshop Methods

downloadFile(fileId, callback(err, files))

Download a file to your output folder. Takes a string or integer as argument.

downloadFiles(fileIds, callback(err, files))

Download files to your output folder. Takes an array of strings or integers as argument.

downloadCollection(collectionId, callback(err, files))

Download a collection of files to your output folder. Takes a string or integer as argument.

downloadCollections(collectionIds, callback(err, files))

Download collections of files to your output folder. Takes an array of strings or integers as argument.

getCollectionDetails(collectionIds, callback(err, files))

https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage#GetCollectionDetails

Get details about collections from Steam Workshop. Takes an number, a string or an array of strings or integers as argument.

getPublishedFileDetails(fileIds, callback(err, files))

https://partner.steamgames.com/doc/webapi/ISteamRemoteStorage#GetPublishedFileDetails

Get details about files from Steam Workshop. Takes an number, a string or an array of strings or integers as argument.

queryFiles(query, callback(err, files))

https://partner.steamgames.com/doc/webapi/IPublishedFileService#QueryFiles

Search Steam Workshop for files with passed query argument. key is the only required value for query. bool values should be passed as a number or string, 1 or 0.

/steam-workshop/

    Package Sidebar

    Install

    npm i steam-workshop

    Weekly Downloads

    33

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • dahlgren