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

rsmq-cli

v0.2.0

Published

A RSMQ terminal client

Downloads

123

Readme

rsmq-cli

Build Status Build Status NPM version

A RSMQ terminal client.

NPM

Install

  npm install -g rsmq-cli

Usage

  rsmq send "mymsg"

Global Options

Global options can be used by every command. Execpt the option --group tt's also possible to define your own default by using rsmq config or by editing the file ~/.rsmq-cli.

  • -h --host : ( String optional: default = 127.0.0.1 ) Redis host
  • -p --port : ( Number optional: default = 6379 ) Redis port
  • -n --ns : ( String optional: default = rsmq ) RSMQ namespace
  • -q --qname : ( String optional ) RSMQ queuename.
  • -t --timeout : ( Number optional: default = 6379 ) timeout to wait for a redis connection.
  • -g --group : ( String optional ) RSMQ configuration group.
  • --clientopt : ( String optional ) Redis client options. Multiple usage possible. E.g. --clientopt password=secret --clientopt db=3 (see node_redis.options).

Commands

create

create a new queue if not exists

  rsmq create [global-options]

send short: sn

send a message to the queue

  rsmq send message [global-options] 

receive short: rc

receive a single message

  rsmq receive [global-options]

delete short:rm

send a message from the queue

  rsmq delete [msgid] [global-options]

stats

get the current queue attributes and stats

  rsmq stats [global-options]

count

get the message count of a queue

  rsmq stats [global-options]

listqueues short: ls

List all queues within the namespace

  rsmq listqueues [global-options]

visibility short: vs

change the visibility of a message

  rsmq visibility [msgid] [vt] [global-options]

attributes short: attr

get or set the attributes of a queue

  rsmq attributes set [name] [value] [global-options]
  rsmq attributes get [name] [global-options]
  rsmq attributes ls [global-options]

attributes to set:

  • vt ( Number optional ) The length of time, in seconds, that a message received from a queue will be invisible to other receiving components when they ask to receive messages. Allowed values: 0-9999999 (around 115 days)
  • delay ( Number optional ) The time in seconds that the delivery of all new messages in the queue will be delayed. Allowed values: 0-9999999 (around 115 days)
  • maxsize ( Number optional ) The maximum message size in bytes. Allowed values: 1024-65536

config

configurate your client. This makes it possible to redefine the defaults of the client options

  rsmq config [-g group] ls
  rsmq config [-g group] get [name]
  rsmq config [-g group] set [name] [value]

Examples:

# set the host global
rsmq config set host my.redis.server.com

# set the host of group
rsmq config set --group myenv host my.redis.server.com

# set client connection options of a group
rsmq config set --group myenv clientopt.password "myRedisSecret!"

# get the host of a group
rsmq config get --group myenv host

# get the complete configuration of a group as json
rsmq config ls --group myenv --json

# remove the host config of a group
rsmq config set --group myenv host

Release History

|Version|Date|Description| |:--:|:--:|:--| |0.2.0|2016-06-27|Added the possibility to define redis client options by using --clientopt or setting it via config rsmq config set clientopt.db 0| |0.1.3|2016-06-27|fixed error handling on invalid arguments/params; removed generated code docs| |0.1.2|2016-05-06|updated dependencies and dev environment| |0.1.1|2015-03-03|first working version| |0.0.1|2015-02-23|Initial commit|

NPM

Initially Generated with generator-mpnodemodule

Other projects

|Name|Description| |:--|:--| |rsmq|A really simple message queue based on Redis| |rsmq-worker|a implementatio helper to create a rsmq worker| |redis-notifications|A redis based notification engine. It implements the rsmq-worker to safely create notifications and recurring reports.| |node-cache|Simple and fast NodeJS internal caching. Node internal in memory cache like memcached.| |redis-sessions|An advanced session store for NodeJS and Redis| |obj-schema|Simple module to validate an object by a predefined schema| |connect-redis-sessions|A connect or express middleware to simply use the redis sessions. With redis sessions you can handle multiple sessions per user_id.| |systemhealth|Node module to run simple custom checks for your machine or it's connections. It will use redis-heartbeat to send the current state to redis.| |task-queue-worker|A powerful tool for background processing of tasks that are run by making standard http requests.| |soyer|Soyer is small lib for serverside use of Google Closure Templates with node.js.| |grunt-soy-compile|Compile Goggle Closure Templates ( SOY ) templates inclding the handling of XLIFF language files.| |backlunr|A solution to bring Backbone Collections together with the browser fulltext search engine Lunr.js|

The MIT License (MIT)

Copyright © 2015 mpneuried, http://www.tcs.de

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.