Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mafintosh/hyperpipe
- Owner: mafintosh
- License: mit
- Created: 2016-11-01T22:30:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T20:03:09.000Z (over 7 years ago)
- Last Synced: 2024-04-14T09:55:39.340Z (7 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 116
- Watchers: 8
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-peer-to-peer - hyperpipe
- awesome-dat - hyperpipe - simple cli to pipe and read files into live hypercore feeds (Using Dat / Hypercore Tools)
- awesome-network-js - hyperpipe
- awesome-peer-to-peer - hyperpipe
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 keyOptions:
-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 syncingExamples:
$ 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