Home

Awesome

node-steam-inventory-api-ng

npm version

A Steam Inventory API wrapper with advanced features such as retries and proxy support.

npm install steam-inventory-api-ng

This project

My former forked version (steam-inventory-api-fork) of the original steam-inventory-api is no longer going to be maintained, however it will stay up for any old projects. This will be the new place for any new development. It didn't seem right to keep developing inside a fork so therefore ng (next generation) was appropriate.

This module is developed with the goal of adding new features to existing inventory fetchers, mostly DoctorMcKay's node-steamcommunity getUserInventoryContents call. The newer features added are:

As this module is designed to add on functionality, any former project using node-steamcommunity's getUserInventoryContents can easily be ported over to this project. Some of the code base is recycled, such as items will be returned as CEconItem objects.

It's worth noting that if an inventory is private or not found more requests will not be done.

For documentation see doc.md.

Examples

Please see any examples in the examples folder.

Logging

To get any logging events just use something like below:

inventoryApi.on('log', (type, message, steamid) => {
	console.log(`${type} - ${steamid} - ${message}`);
});

Docs

See doc.md for jsdoc

Changes from the fork (steam-inventory-api-fork) [SOME BREAKING CHANGES]