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

rabbitmq-admin

v1.2.3

Published

Module to interact withRabbitMQ Management Plugin's API

Downloads

173

Readme

Rabbitmq Admin

Meant to interact with RabbitMQ management plugin's API.

Starting off with commands I need in Haredo test suite, but will eventually include everything detailed in the documentation.

Usage

Initialization

Shown here with defaults

const rabbitAdmin = new RabbitAdmin({
  rabbitHost: 'http://localhost:15672',
  pathBase: '/api',
  user: 'guest',
  password: 'guest',
});

Commands

Currently implemented commands:

  • getOverview
  • getClusterName
  • setClusterName
  • getNodes
  • getNode
  • getExtensions
  • getDefinitions
  • getConnections
  • getConnection
  • closeConnection
  • getVhostConnections
  • getChannels
  • getChannel
  • getConsumers
  • getExchanges
  • getExchange
  • createExchange
  • deleteExchange
  • getSourceExchangeBindings
  • getDestinationExchangeBindings
  • publishToExchange
  • getQueues
  • getQueue
  • createQueue
  • deleteQueue
  • getQueueBindings
  • getConnectionChannels
  • getVhostChannels
  • listVhosts
  • getVhost
  • deleteVhost
  • createVhost
  • setUserPermissions
  • getUserPermissions
  • createBinding
  • getBinding
  • getBindings
  • deleteBinding

CLI Usage

It's possible to use this package from the CLI by installing it globally or using npx rabbitmq-admin

Usage: rabbitmq-admin [options] [command]

Options:
  -U, --user <user>       Username for authentication
  -P, --pass <pass>       Password for authentication
  --format <format>       Output format. Accepted values: json | json-pretty (default: "json")
  -h, --help              display help for command

Commands:
  overview                Get information about the whole system
  cluster-name [options]  Get the name of the cluster
  nodes [options]         Get a list of nodes in the cluster. If no node name is given, all nodes are listed
  extensions              Get a list of installed management plugins
  definitions [options]   Get a list of server definitions such as exchanges, queues, users, virtual hosts, permissions, topic permissions and parameters, everything excecpt messages
  connections
  channels [options]      Get a list of channels. Paginated.
  consumers [options]
  exchanges
  queues
  vhost
  permissions
  bindings
  help [command]          display help for command