JSPM

redispump_factual

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q21614F
  • License MIT

pump stdout to redis

Package Exports

  • redispump_factual

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (redispump_factual) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

redispump

A command line tool to pump arbitrary data to a redis pubsub channel.

$ tail -f /var/log/nginx/error.log | redispump -c channelname
$ tail -f /var/log/nginx/error.log | redispump -c channelname -a localhost:6379
$ tail -f /var/log/nginx/error.log | redispump -c channelname -a localhost:6379 --mimetype text/plain

Installation

$ npm install -g redispump
# yay, you're done

CLI

-c [channelname]

--channel [channelname]

Required. The name of the channel to publish to.

-a [host:port]

--addr [host:port]

--address [host:port]

The host and port of the redis server to publish to.

-m [mimetype]

--mimetype [mimetype]

The mimetype to use when parsing incoming data.

Available mimetypes are:

  • text/plain: Publishes each line in a file to redis.
  • application/json: Publishes each top level item in JSON output to redis.

LICENSE

MIT