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

var scriptbroadcast = require("scriptbroadcast")

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

scriptbroadcast v0.0.3

Broadcast recorded typescripts(shell sessions)

SCRIPTBROADCAST

scriptboradcast broadcasts typescripts recorded with script command to any numbers of recipients.

DEMO

nc wei23.net 5000

First make sure you are using a normal sized 80*24 terminal, then run the above netcat command, enjoy.

INSTALL

You can install scriptbroadcast using npm.

npm install scriptbroadcast

Please make sure that npm's bin directory is exported in path.

SYNOPSIS

scriptbroadcast [port [timing [typescript [divisor]]]]

5000 is the default port, timing is the default timing file, typescript is the default typescript file and the default divisor is 1.

USAGE

You can record your timing and typescript file in this way:

script -qtf 2> timing

Then run the following command to fire up the broadcasting server with default parameters:

scriptbroadcast

Run the following netcat command elsewhere will play your typescript:

nc yourip 5000

SEE ALSO

script(1), scriptreplay(1)

scriptbroadcast is inspired by my CommandLineFu command and the comments.

LICENSE

scriptbroadcast is licensed under "MIT/X11" license, see LICENSE file.

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