Install it from npm or check out the wiki for documentation.
I'm developing this module for Skins.ee CS:GO item trade-up website. Since I did not find any other module suitable for my needs I've decided to create my own first module for Node.js.
I will add features that I need. If you have some good ideas please let me know.
You can either call the methods below in a script or enable the WebApi.
enableWebApi
- Optional. Defaults tofalse
, iftrue
then it will enable the WebApi using Express.webApiPort
- Optional. Defaults to1337
. This is the port the WebApi will be listening on.webApiSeperator
- Optional. Defaults to!N!
. This seperates the items when calling/items/:names
.
Fetches item's price from Market using getItem
method. Uses the default constructor values.
Fetches multiple items prices from Market using getItems
method. Uses the default constructor values.
Fetches all items and their prices from Backpack.tf using getAllItems
method. Uses the default constructor values.
Fetches item's price from Market.
Fetches multiple items prices from Market.
Fetches all items and their prices from Backpack.tf. Holds the fetched data for 300 seconds before making a new query since Backpack.tf API limit is 1 request per 300 seconds.
Gets the user inventory using node-steamcommunity
and adds the option to append priceData
to the inventory items.
Report bugs on the issue tracker