Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mafintosh/hyperpipe

Distributed input/output pipe.
https://github.com/mafintosh/hyperpipe

Last synced: 7 days ago
JSON representation

Distributed input/output pipe.

Awesome Lists containing this project

README

        

# hyperpipe

Distributed input/output pipe.

``` sh
npm install -g hyperpipe
hyperpipe --help
```

## Usage

On one computer

``` sh
./program | hyperpipe /tmp/some-folder

```

On another

``` sh
hyperpipe /tmp/some-other-folder
```

## API
```sh
Usage:
$ hyperpipe [options]

Commands:
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 > 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