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

@jmorecroft67/pg-stream-cli

v2.1.0

Published

**Version**: 2.1.0

Downloads

36

Readme

pg-stream

Version: 2.1.0

Usage

$ pg-stream [(-h, --host text)] [(-p, --port integer)] [(-d, --dbname text)] [(-U, --username text)] [(-W, --password text)] [--noSSL] [--output table | json] [--log verbose | quiet]

Description

Simple PostgreSQL client for querying and logical replication streaming.

Options

  • (-h, --host text)

    A user-defined piece of text.

    postgres server host

    This option can be set from environment variables.

    This setting is optional.

  • (-p, --port integer)

    An integer.

    postgres server port

    This option can be set from environment variables.

    This setting is optional.

  • (-d, --dbname text)

    A user-defined piece of text.

    postgres database

    This option can be set from environment variables.

    This setting is optional.

  • (-U, --username text)

    A user-defined piece of text.

    database user username

    This option can be set from environment variables.

    This setting is optional.

  • (-W, --password text)

    A user-defined piece of text.

    database user password

    This option can be set from environment variables.

    This setting is optional.

  • --noSSL

    A true or false value.

    do not connect to postgres using SSL

    This setting is optional.

  • --output table | json

    One of the following: table, json

    output display format

    This setting is optional.

  • --log verbose | quiet

    One of the following: verbose, quiet

    logging level

    This setting is optional.

  • --completions sh | bash | fish | zsh

    One of the following: sh, bash, fish, zsh

    Generate a completion script for a specific shell

    This setting is optional.

  • (-h, --help)

    A true or false value.

    Show the help documentation for a command

    This setting is optional.

  • --wizard

    A true or false value.

    Start wizard mode for a command

    This setting is optional.

  • --version

    A true or false value.

    Show the version of the application

    This setting is optional.

Commands

query (-c, --command text)

Runs some SQL and prints the results. The SQL may be a single statement or a sequence of statements. When the SQL contains more than one SQL statement (separated by semicolons), those statements are executed as a single transaction, unless explicit transaction control commands are included to force a different behavior. Each result set will be printed separately, either in tabular form or as a single line of JSON, depending on the "output" selected.

recvlogical (-S, --slot text) (-P, --publication text) [--createSlotIfNone] [--createPublicationIfNone] [--temporary]

Starts a logical replication stream from the server and prints the events as they are received. Each batch of events associated with a single transaction is printed separately, either in tabular form or as a single line of JSON, depending on the "output" selected. The slot and publication may be optionally created on demand, and may optionally be designated "temporary", in which case they will be removed on exit. The SIGINT (CTRL-C) or SIGTERM signals should be used to shut down the app.