3.2.0 • Published 7 years ago

hyperpipe v3.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

hyperpipe

Distributed input/output pipe.

npm install -g hyperpipe
hyperpipe --help

Usage

On one computer

./program | hyperpipe /tmp/some-folder
<prints-key>

On another

hyperpipe /tmp/some-other-folder <key-from-above>

API

  Usage:
    $ hyperpipe <database> <key?> [options]

  Commands:
    <default>    Pipe a file into the swarm or read from the swarm at a key

    Options:
      -h, --help      Print usage
      -t, --tail      Only print get updates
      -e, --encoding  Set encoding for hypercore (parse ndjson by setting to 'json')
          --no-live   Exit after hyperpipe is done syncing

  Examples:
    $ hyperpipe ./pipe.db < README.md         # cat a file & print key
    $ hyperpipe ./pipe.db <key> > README.md   # write a file from a key
    $ tail -F foo.log | hyperpipe ./pipe.db   # tail a live log file
    $ hyperpipe ./pipe.db --encoding='json' < my-data.json   # put ndjson into hypercore

License

MIT

3.2.0

7 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago