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 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-dota2-spectator

v0.3.0

Published

A node-steam plugin for Dota 2 Spectator Client.

Readme

Node Dota2 Spectator

NPM version Build Status Code Climate Dependency Status PayPal donate button 支付宝捐助按钮
A node-steam plugin for Dota 2 Spectator Client. Spectate dota2 games

How to install

  • download the package to your working directory
  • run npm install steam && npm install in the node-dota2-spectator directory

How to use

Initialiaztion

var steam = require('steam'),
    dota = require('dota'),
    bot = new steam.SteamClient(),
    user = new steam.SteamUser(bot),
    gc = new steam.SteamGameCoordinator(bot, 570);
    dota2 = new dota.Dota2Client(user, gc, true);

How to use your old sentryfile(to avoid the one week trade limit)

I just found out that the old sentry file is a sha1 fingerprint of the new sentry

  • load old sentry
if (fs.existsSync('sentryfile/'+logOnDetails.account_name)){
    logOnDetails.sha_sentryfile  = fs.readFileSync('sentryfile/' + logOnDetails.account_name);
    util.log('sentry loaded');
}
  • update sentry
var onUserUpdateMachineAuth = function onUserUpdateMachineAuth(sentry, callback){
    var sentryfile = crypto.createHash('sha1').update(sentry.bytes).digest();
    fs.writeFileSync('sentryfile/'+config.steam_user, sentryfile);
    util.log("sentryfile saved");
    callback({ sha_file: sentryfile });
}

Test result: old sentrys are accept by steam
If you find out any problem, feel free to contact with [me](mailto: [email protected]) or open an issue.

Try it out

  • add your steam username and password in the config.js
  • add the auth-code from steam after first try to login
  • then you can login from now on

refer to the example.js for more

How to extend

Write a handler.js then import it to the index.js

license

This script is release under MIT license. Refer to the LICENSE file for more information.