Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including redispump with all npm packages installed. Try it out:

var redispump = require("redispump")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

redispump v0.1.0

pump stdout to redis


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


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


-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.




RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free