steam-market-manager

1.0.8 • Public • Published

Steam Market Manager for Node.js

npm version npm downloads license paypal

Install it from npm or check out the wiki for documentation.

Purpose of this module

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.

Module

Web API

You can either call the methods below in a script or enable the WebApi.

Constructor options for WebApi

  • enableWebApi - Optional. Defaults to false, if true then it will enable the WebApi using Express.
  • webApiPort - Optional. Defaults to 1337. This is the port the WebApi will be listening on.
  • webApiSeperator - Optional. Defaults to !N!. This seperates the items when calling /items/:names.

/item/:name

Fetches item's price from Market using getItem method. Uses the default constructor values.

/items/:names

Fetches multiple items prices from Market using getItems method. Uses the default constructor values.

/items/all

Fetches all items and their prices from Backpack.tf using getAllItems method. Uses the default constructor values.

Methods

getItem(options, callback)

Fetches item's price from Market.

getItems(options, callback)

Fetches multiple items prices from Market.

getAllItems(options, callback)

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.

getInventory(options, callback)

Gets the user inventory using node-steamcommunity and adds the option to append priceData to the inventory items.

Support

Report bugs on the issue tracker

Readme

Keywords

Package Sidebar

Install

npm i steam-market-manager

Weekly Downloads

0

Version

1.0.8

License

MIT

Last publish

Collaborators

  • netifriik