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-deploy

v1.0.0

Published

Command line utility and module for uploading to Steam via Steam Pipe

Downloads

3

Readme

Steam-Deploy

Steam-Deploy is a Node module and CLI for easily deploying content to Steam using the Steamworks SDK. Define any number of build output directories and Steam-Deploy will copy files to your Steamworks SDK content directory and initiate a deployment.

Steam-Deploy can be used with other Node modules allowing you to easily create a build pipeline. Used internally by Pocketwatch Games in conjunction with our friendly Hubot.

Installation and Configuration

In addition to your own copy of the Steamworks SDK (not provided), Steam-Deploy requires Node and npm. Grab the latest version with

git clone https://github.com/pocketwatchgames/steam-deploy.git

Install dependencies with

npm install

Configuration

Steam-Deploy requires you to edit config.json to tell it where to find your build directories and Steamworks SDK. Steam-Deploy can operate on more than one build target by adding more entries to the builds array.

"builds": [
    {
      "name": "Windows",
      "depot_id": "0001",
      "vdf_filename": "Windows.vdf",
      "relative_build_dir": "/bin/Windows/Release",
      "exclude_pattern": ".*.pdb"
    },
    {
      "name": "OSX",
      "depot_id": "0002",
      "vdf_filename": "OSX.vdf",
      "relative_build_dir": "/bin/OSX/Release",
      "exclude_pattern": "(.DS_Store|.*.pdb)"
    }
  ]

exclude_pattern is a Javascript regular expression that can be used to filter out files you don't want included in your Steam deployment.

Usage

Steam-Deploy can be used via the command line for easy deployment from your development machine

node steamupload.js [options]

Command Line options

  • -d --desc - Provide a description for the build that will be uploaded with the build and visible on your build management page on the Steamworks backend.
  • -b --branch - Provide a specific branch for Steam-Deploy to set the build live under. Note that deployment will fail if the branch does not exist on your Steamworks backend, or if the branch is default.
  • -h --help - Display command line help.

ex.

node steamupload.js -b "alpha" -d "my description"

If not specified, Steam-Deploy will upload with no branch and the description "Uploaded with steam-deploy.js".

Scripting

Require Steam-Deploy and instantiate a new instance to get started

var SteamDeploy = require('steam-deploy');
var steam = new SteamDeploy();

branch = "alpha";
desc = "Uploaded with Steam-Deploy!";

steam.on('success', function () {
  console.log("Done!");
  });
steam.on('failure', function(err) {
  console.log("Error! " + err);
  });
steam.on('message', function(msg) {
  console.log(msg);
  });

steam.deploy(desc, branch);

Steam-Deploy emits three events for scripting purposes:

  • success - Indicates the deployment was successfully recieved by the Steam backend.
  • failure - Indicates something went wrong, calls back with an error message from steamcmd.exe.
  • message - Provides progress messages.