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

@yodata/plugin-event

v1.0.6

Published

manage events and subscriptions in @yodata/cli

Downloads

15

Readme

@yodata/plugin-event

oclif Version Downloads/week License

Usage

$ npm install -g @yodata/plugin-event
$ yodata event COMMAND
running command...
$ yodata event (-v|--version|version)
@yodata/plugin-event/1.0.6 darwin-x64 node-v16.17.1
$ yodata event --help [COMMAND]
USAGE
  $ yodata event COMMAND
...

Commands

yodata event event:set-topic [TOPIC]

set default topic

USAGE
  $ yodata event event:set-topic [TOPIC]

ARGUMENTS
  TOPIC  name of the topic

OPTIONS
  -o, --output=yaml|json|table|text  [default: yaml] format output
  --profile=profile                  [default: solid-dev-ire] command context

See code: src/commands/event/set-topic.js

yodata event pub

publish events from a file

USAGE
  $ yodata event pub

OPTIONS
  -c, --cdefPath=cdefPath       path to cdef
  -o, --output=yaml|json|table  [default: yaml] format output
  -r, --recipient=recipient     [default: https://dave.dev.env.yodata.io/profile/card#me] recipient
  -t, --topic=topic             topic
  --profile=profile             [default: solid-dev-ire] command context

ALIASES
  $ yodata event publish

See code: src/commands/pub/index.js

yodata event sub [HOST] [QUERY]

display all authorized publishers and subscribers on the host pod

USAGE
  $ yodata event sub [HOST] [QUERY]

ARGUMENTS
  HOST   the target pod
  QUERY  [default: *] filter results by agent or topic

OPTIONS
  --output

ALIASES
  $ yodata event subs
  $ yodata event subscribers

See code: src/commands/sub/index.js

yodata event sub:add

add topics to an existing subscription or creates a new one

USAGE
  $ yodata event sub:add

OPTIONS
  -p, --pub=pub              [default: ] the agent will be authorized to publish to these topics (csv)
  -s, --sub=sub              [default: ] the agent will be subscribe to these topics (csv)
  -v, --version=version      [default: 0] the subscription version
  --agent=agent              (required) the subscriber, i.e. myapp:

  --filter-type=filter-type  [default: RealEstateAgent,RealEstateOrganization] update only specific type(s) i.e.
                             RealestateAgent, RealestateOrganization, RealestateOffice

  --force                    force the subscription non-standard topic

  --host=host                the host or subscription file location i.e nv301: or
                             nv301:/settings/default-subscriptions.json

  --output

  --profile=profile          [default: solid-dev-ire] command context

  --push                     setup a push subscription to automatically forward events to the agent

  --replace                  replace the current subscription (dont merge topics)

  --verbose                  display the full subscription list after the change

DESCRIPTION
  examples:
    # add profile subscription for coolapp on the current host

    $ yodata sub:add --agent coolapp --sub profile

    # add lead and contact pub and sub on host nv301

    $ yodata sub:add --sub contact,lead --pub contact,lead --agent reliance --host nv301

    # to REPLACE a subscription rather than add topics to it, use the --replace flag
    # if this command were executed following the previous command, the reliance subscription
    # will only have contact pub/sub permissions on the host.

    $ yodata sub:add --sub contact --pub contact --agent reliace --host nv301 --replace

See code: src/commands/sub/add.js

yodata event sub:remove

remove a subscription entirely

USAGE
  $ yodata event sub:remove

OPTIONS
  -p, --pub=pub              [default: ] the agent will be authorized to publish to these topics (csv)
  -s, --sub=sub              [default: ] the agent will be subscribe to these topics (csv)
  --agent=agent              (required) the subscriber, i.e. myapp:

  --filter-type=filter-type  [default: RealEstateAgent,RealEstateOrganization] update only specific type(s) i.e.
                             RealestateAgent, RealestateOrganization, RealestateOffice

  --force                    force the subscription non-standard topic

  --host=host                the host or subscription file location i.e nv301: or
                             nv301:/settings/default-subscriptions.json

  --output

  --profile=profile          [default: solid-dev-ire] command context

  --verbose                  dispaly all subscriptions for the target after the subscription is reoved.

DESCRIPTION
  examples:
    # remove profile subscription for coolapp on the current host
    yodata sub:remove --agent coolapp --sub profile

    # remove a subscription for coolapp on host nv301
    yodata sub:remove --agent coolapp --host nv301

See code: src/commands/sub/remove.js

yodata event sub:reset HOST

reset subscription to default if target.version <= source.version

USAGE
  $ yodata event sub:reset HOST

ARGUMENTS
  HOST  the target pod

OPTIONS
  --force          replace newer subscription doc and move previous to backup dir
  --no-delete      Do not Delete any existing subscriptions, only add new ones

  --source=source  (required) [default: settings/default-subscriptions.json] the source subscription to replace the
                   current one

See code: src/commands/sub/reset.js

yodata event sub:stop

disables matching subscription(s)

USAGE
  $ yodata event sub:stop

OPTIONS
  -p, --pub=pub                [default: ] the agent will be authorized to publish to these topics (csv)
  -s, --sub=sub                [default: ] the agent will be subscribe to these topics (csv)
  -s, --subscriber=subscriber  filter by subscriber
  -t, --topic=topic            filter by topic
  --agent=agent                (required) the subscriber, i.e. myapp:

  --filter-type=filter-type    [default: RealEstateAgent,RealEstateOrganization] update only specific type(s) i.e.
                               RealestateAgent, RealestateOrganization, RealestateOffice

  --force                      force the subscription non-standard topic

  --host=host                  the host or subscription file location i.e nv301: or
                               nv301:/settings/default-subscriptions.json

  --output

  --profile=profile            [default: solid-dev-ire] command context

See code: src/commands/sub/stop.js

yodata event sub:version [HOST]

returns the target subscription version

USAGE
  $ yodata event sub:version [HOST]

ARGUMENTS
  HOST  [default: .] the target pod

OPTIONS
  -o, --output=yaml|json|table|text  [default: yaml] format output
  --profile=profile                  [default: solid-dev-ire] command context

See code: src/commands/sub/version.js