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

steamcmd

v3.0.0

Published

Call SteamCMD from node.js

Readme

steamcmd

Call SteamCMD from node.js

npm AppVeyor Travis

Install

$ npm install --save steamcmd

SteamCMD works faster if all its [required ports] (https://support.steampowered.com/kb_article.php?ref=8571-GLVN-8711) are available:

  • UDP 27015 through 27030
  • TCP 27015 through 27030

Usage

const steamcmd = require('steamcmd');

steamcmd.download();
//=> returns a Promise for downloading steamcmd locally
steamcmd.touch();
//=> returns a Promise for ensuring that steamcmd is updated and dependencies exist
steamcmd.prep();
//=> returns a Promise for downloading and updating steamcmd
steamcmd.getAppInfo(730);
//=> returns a Promise for the app info of appID 730
steamcmd.updateApp(90, path.resolve('hlds'));
//=> returns a Promise for installing/updating the Half-Life Dedicated Server into 'hlds'

API

steamcmd.download([opts])

Downloads SteamCMD for the current OS into opts.binDir unless opts.binDir already exists and is accessible.

steamcmd.touch([opts])

Ensures SteamCMD is usable by running it with no arguments and exiting.

steamcmd.prep([opts])

Runs download([opts]), waits briefly to avoid EBUSY, then runs touch([opts]).

steamcmd.getAppInfo(appid[, opts])

Asks SteamCMD to get the latest app info for the given app.

steamcmd.updateApp(appid, installDir[, opts])

Asks SteamCMD to install/update the given app to the given absolute directory. Throws a TypeError if installDir is not absolute. Returns true if the update succeeded or false if it wasn't required. If SteamCMD's stdout isn't recognized, throws it as an error.

Configuration

All functions take an optional options parameter.

binDir

type: string default: path.join(__dirname, 'steamcmd_bin')

The directory to use when downloading and running steamcmd itself. Defaults to steamcmd_bin in the same directory where this package is installed.

Testing

The tests run in parallel and do a significant amount of downloading and IO. If you're running programs that scan downloaded files, like anti-virus or anti-malware (e.g. Windows Defender Realtime Protection), the test processes may run very slowly or be blocked with EBUSY. Try temporarily disabling such programs while running the tests.

License

MIT © Matt Horn