Gets data about Steam workshop mods/assets
- npm >=10.x.x
- node >=18.x
npm install steam-workshop-scraper
const SteamWorkshopScraper = require('steam-workshop-scraper');
var sws = new SteamWorkshopScraper();
sws.GetChangeLog(670764308).then(function (data) {
console.log('Last entry in changelog:', data.data[0]);
});
sws.GetInfo(670764308).then(function (data) {
console.log('Info:', data);
});
const SteamWorkshopScraper = require('steam-workshop-scraper');
var sws = new SteamWorkshopScraper();
// Add your steam workshop ids what should be monitored
sws.AddToUpdates([1384657523, 670764308, 589205263]);
// Or remove some if you don't need them anymore
sws.RemoveFromUpdates([670764308, 1384657523]);
// Get the event fired if a workshop item gets updated.
sws.Event.on('update', function(data){
console.log('data on update:', data);
});
//To trigger the update manually
sws.TriggerUpdate().then(function (){
console.log(sws.workshopMap);
});
npm test
👤 axi92
- Github: @axi92
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2020 axi92.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator