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

rctpm

v1.0.0

Published

OpenRCT2 Plugin Manager

Downloads

1

Readme

rctpm

The OpenRCT2 plugin manager.

rctpm is a package manager for OpenRCT2 plugins hosted on NPM. It uses Yarn under the hood to obtain the most up-to-date versions of each plugin, and copies the specified "main" output file to your OpenRCT2 plugins directory. Because it can leverage Yarn's lockfile system, rctpm can be used to rehydrate a plugins directory from any state, enabling fast upgrades and installs.

rctpm takes over your plugin directory and will remove any existing plugins when it installs new ones.

Installation

You'll need Yarn installed to use rctpm. If you don't already have it installed, run:

npm install -g yarn

To install the rctpm CLI, run;

yarn global add rctpm

Usage

rctpm can be used both as a CLI as well as a library.

Basic Usage

Install a new plugin from NPM:

rctpm add openrct2-benchwarmer

Or, from GitHub:

rctpm add https://github.com/mgovea/openrct2-ride-price-manager

Or, from your local filesystem:

rctpm add ~/my-plugin

List all plugins:

rctpm list

Uninstall a plugin:

rctpm remove openrct2-benchwarmer

Upgrade all plugins:

rctpm upgrade

For more info, run:

rctpm --help

Configuration

You can configure the CLI by way of environment variables:

  • $RCTPM_CONFIG_PATH is the path to your package config for rctpm. This is typically ~/.config/rctpm.
  • $RCTPM_OPENRCT2_PATH is the path to your OpenRCT2 installation. This differs per platorm, and rctpm will try and detect the OS you're using in order to automatically discover this value.
  • The CLI also respects the $DEBUG "standard" of using a string in this variable value to denote whether the user wants debug log messages. Add rctpm:* to this value to get debug logs in the CLI.

Programmatic Usage

To use rctpm within your own [NodeJS][] program, add it to your project's dependencies and import it like so:

import rctpm from "rctpm";

rctpm.add("some-package");

The API is very similar to that of the CLI. By default, it uses the same environment variable configuration. You can override this by configuring the Manifest object from the module:

import rctpm from "rctpm";

rctpm.base = "path/to/rctpm/config"
rctpm.artifact = "path/to/openrct2/data"

rctpm.install()