All Projects → mafintosh → Hyperpipe

mafintosh / Hyperpipe

Licence: mit
Distributed input/output pipe.

Programming Languages

javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].