pipe output of shell cmd to browser ,instantly. by nodejs
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
README.md
cmd.json
index.js
package.json

README.md

pipe output( stdout and stderror ) of shell cmd to browser,instantly. by nodejs

how to use?

  1. sudo npm install -g pipe2browser
  2. modify the cmd in cmd.json of current dir to test.
  3. pipe2browser -restart, enjoy!

an example cmd.json:

{
    "cmd":[
        "pwd",
        "ls -l",
        "svn up --non-interactive --trust-server-cert --username dyw --password myPasswd /tmp/myCode"
    ]
}

Note: a default cmd.json will created in your current dir(pwd), where you start pipe2browser