npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

steam-market-sell

v1.0.2

Published

simple node.js module with functions needed to sell items on steam comunity market

Downloads

5

Readme

node-steam-market-sell

simple node.js module with functions needed to sell items on steam comunity market

DISCLAIMER : Using bots is against Steam's TOS (You may not use Cheats, automation software (bots), mods, hacks, or any other unauthorized third-party software, to modify or automate any Subscription Marketplace process.). I do not take any responsibility for any damage that using this script may cause.

Instalation

Just run npm i steam-market-sell inside your project's directory.

Usage

Check example.js file in this repo to see how to initialize and use basic methods of this module.

Documentation

node-steam-tradeoffer-manager is a node.js module for managing Trade Offers within the Steam platform.

When you require() the module, the SteamMarketSell class is returned.

Constructor({options})

There are two ways of initializing this class. You can pass already logged in steamcommunity instance with sessionID and cookies or just pass account's credentials and let it do the work.

Needed options when passing steamcommunity instance

currencyCode

Number of currency used on account (https://github.com/SteamRE/SteamKit/blob/master/Resources/SteamLanguage/enums.steamd#L856)

appID

AppID of game of which items you will be selling/getting price.

sellInterval

How frequently request to steam will be sent in ms (default: 4000)

credentials

Object containing steam login info

credentials.login

Login to account

credentials.password

Password to account

credentials.shared_secret

shared_secret of account

credentials.identity_secret

identity_secret of account

confirmations

Boolean, if you want module to use startConfirmationChecker method on steamcommunity with sellInterval as an argument.

Needed options when passing steamcommunity instance

currencyCode

Number of currency used on account (https://github.com/SteamRE/SteamKit/blob/master/Resources/SteamLanguage/enums.steamd#L856)

appID

AppID of game of which items you will be selling/getting price.

sellInterval

How frequently request to steam will be sent in ms (default: 4000)

steamcommunity

SteamCommunity instance

sessionID

Can be owned in callback in steamcommunity's login method.

cookies

Can be owned in callback in steamcommunity's login method.

confirmations

Boolean, if you want module to use startConfirmationChecker method on steamcommunity with sellInterval as an argument. However you have to pass credentials.identity_secret in options to have it working.

Methods

After creating SteamMarketSell instance you have to run init method to be able to use other ones.

init

Logs in to Steam and/or initializes whole module, depending on constructor options

  • callback

sellAllItems

Sells all marketable items from specified game

  • useLowestPrices True for using lowest prices, false for median
  • callback Callback passes no values, listen for events to get info about sellings

sellItem

Sells single item

  • assetID
  • contextID
  • price
  • callback
    • err

getPrice

  • market_hash_name Market name of item
  • useLowestPrices True for using lowest prices, false for median
  • callback
    • err
    • price

loadAndProcessInventory

Downloads and processes inventory in object which properties are market_hash_name of items which goes to array of objects with properties assetid and contextid.

  • callback
    • err
    • processedInv

Events

'log on'

Triggered when whole module is ready to work

'item sold'

Triggered when item sold during sellAllItems method execution

  • sellInfo
    • name
    • assetid
    • contextid
    • price

'item not sold'

Triggered when error occured while selling item during sellAllItems method execution

  • err
  • sellInfo
    • name
    • assetid
    • contextid
    • price

'loaded inventory'

Triggered when loaded inventory during sellAllItems method execution, can be accessed by inv property of module

Properties

inv

Inventory of account accessible after 'loaded inventory' event is triggered.