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 webtail with all npm packages installed. Try it out:

var webtail = require("webtail")

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

webtail v0.0.12

Client for webtail.me

webtail

Objective

webtail.me allows you to tail files to the web for sharing with other people.

webtail is the command-line client for doing this.

Installation

Requires nodejs

npm install -g webtail

Quick Start

Start tailing

> webtail --new https://webtail.me/ox/ mylogfile.txt
tailing to https://webtail.me/ox/3426f2b6

Point a browser or curl at that url

> curl https://webtail.me/ox/3426f2b6

Usage

WW      WW EEEEEEE BBBBBBB  TTTTTTTT   AAA    IIII LL          MM     MM EEEEEEE
WW  WW  WW EE      BB    BB    TT     AA AA    II  LL          MMM   MMM EE
WW  WW  WW EE      BB    BB    TT    AA   AA   II  LL          MMMM MMMM EE
WW  WW  WW EEEEE   BBBBBBB     TT   AA     AA  II  LL          MM MMM MM EEEEE
WW  WW  WW EE      BB    BB    TT   AAAAAAAAA  II  LL          MM     MM EE
WW  WW  WW EE      BB    BB    TT   AA     AA  II  LL      DOT MM     MM EE
 WWW  WWW  EEEEEEE BBBBBBB     TT   AA     AA IIII LLLLLLL TOD MM     MM EEEEEEE


Usage: node ./webtail.js [--new] url_to_webtail [file_to_tail]
   or: node ./webtail.js login access_token

node ./webtail.js login has to be run at least once to set the access token

node ./webtail.js can either be used by piping data to it:

  > tail -100lf log.txt | node ./webtail.js https://webtail.me/ox/log.txt

or it can read the file directly, in which case it behaves like tail -f:

  > node ./webtail.js https://webtail.me/ox/log.txt log.txt

To generate new random paths, use the --new flag:

  > node ./webtail.js --new https://webtail.me/ox myfile
  tailing to https://webtail.me/ox/3426f2b6


Options:
  --new       If specified, a new random path will be created under the given
              url.
  --insecure  If specified, all server certificates will be trusted.  Typically
              only used for testing with local server.

Tools

Created with Nodeclipse (Eclipse Marketplace, site)

Nodeclipse is free open-source project that grows with your contributions.

Metadata

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