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

drpc-cli

v1.0.5

Published

📦 A discord rich presence package in the cli!

Downloads

11

Readme

DRPC

 ________  ________  ________  ________          ________  ___       ___     
|\   ___ \|\   __  \|\   __  \|\   ____\        |\   ____\|\  \     |\  \    
\ \  \_|\ \ \  \|\  \ \  \|\  \ \  \___|        \ \  \___|\ \  \    \ \  \   
 \ \  \ \\ \ \   _  _\ \   ____\ \  \            \ \  \    \ \  \    \ \  \  
  \ \  \_\\ \ \  \\  \\ \  \___|\ \  \____        \ \  \____\ \  \____\ \  \ 
   \ \_______\ \__\\ _\\ \__\    \ \_______\       \ \_______\ \_______\ \__\
    \|_______|\|__|\|__|\|__|     \|_______|        \|_______|\|_______|\|__|

Drpc is a robust discord rich precence client on the command line, you can save a preset, delete it and configure it, easily!

Installation

npm install -g drpc-cli

Documentation

To configure a preset you must create a drpc-settings.json file, in the current working directory i.e., the directory you are currently working on it. For example: if you create a drpc-settings.json file on the Desktop, the cli must run in the desktop folder.

Here's a example settings file,

{
    "client_id":"",
    "large_image_key":"",
    "large_image_text":"",
    "small_image_key":"",
    "small_image_text":"",
    "description":"",
    "state":"",
    "show_timestamp": ,
    "buttons":[
        {"label":"", "url":""},
        {"label":"", "url":""}
    ]
}

The following is a full template, fill all the information correctly to yield the result!

API

client_id

The client id of the rpc application.

required: true

large_image_key

The key(name) of the large image as set in the rpc application.

required: true

large_image_text The text that would show off when a user hovers over the image. required: false

small_image_key

The key(name) of the small image as set in the rpc application.

required: false

small_image_text

The text that would show off when a user hovers over the image.

required: false

description

The rpc description.

required: true

state

The rpc state description.

required: false

show_timestamp

(Bool) if you want to show the timestamp.

required: false

buttons

(Array) Buttons on the Rich Presence.

Array takes: two objects

Example Object:

{"label":"Something", "url":"https://something.com"},
{"label":"anothersomething","url":"https://example.com"}

Min buttons: 1, Max buttons: 2, required: false

CLI

    DRPC CLI
----------------------------------------------------
MAIN COMMANDS
-------------
--help | -h  --- Shows you the following menu

--run  --- Starts a process.

--delete | -del --- delete a configuration. (required args -> <name>)

--list | -l --- Check the list of saved presets.

SUB-COMMANDS 
------------
RUN
------
--save    --- Run a configuration while simultaneously saving it. (required args -> <name>)
--preset  --- Run a preset instead of a configuration file in the current working dir.

FAQs

How to save a rpc preset?

drpc --run --save <name>

Must the rpc config file be in the cwd while saving the preset? Yes.

If you're going to save the preset you want to run using:

drpc --run --save <name>

The configuration you want to run and save must be in the same current working directory.