Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mafintosh/airpaste
A 1-1 network pipe that auto discovers other peers using mdns
https://github.com/mafintosh/airpaste
Last synced: 4 months ago
JSON representation
A 1-1 network pipe that auto discovers other peers using mdns
- Host: GitHub
- URL: https://github.com/mafintosh/airpaste
- Owner: mafintosh
- License: mit
- Created: 2015-03-21T16:09:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T11:18:53.000Z (almost 3 years ago)
- Last Synced: 2024-01-06T23:57:23.626Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 822
- Watchers: 26
- Forks: 26
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- Awesome-Linux-Software - ![Open-Source Software - A 1-1 network pipe that auto discovers other peers using mdns. (Applications / Sharing Files)
- awesome-peer-to-peer - airpaste - discovers other peers using mdns (Modules)
- Awesome-Linux-Software - ![Open-Source Software - A 1-1 network pipe that auto discovers other peers using mdns. (Applications / Sharing Files)
- awesome-network-js - airpaste - 1 network pipe that auto discovers other peers using mdns. (High level)
- awesome-peer-to-peer - airpaste - discovers other peers using mdns (Modules)
- awesome-stars - mafintosh/airpaste - A 1-1 network pipe that auto discovers other peers using mdns (JavaScript)
- awesome-stars - mafintosh/airpaste - A 1-1 network pipe that auto discovers other peers using mdns (JavaScript)
- fucking-Awesome-Linux-Software - ![Open-Source Software - A 1-1 network pipe that auto discovers other peers using mdns. (Applications / Sharing Files)
- awesome-stars - airpaste - 1 network pipe that auto discovers other peers using mdns | mafintosh | 820 | (JavaScript)
- awesome-peer-to-peer - airpaste - discovers other peers using mdns (Modules)
- Awesome-Linux-Software - ![Open-Source Software - A 1-1 network pipe that auto discovers other peers using mdns. (Applications / Sharing Files)
- Awesome-Linux-Software-zh_CN - ![Open-Source Software - 一对一网络管道,可使用 mdns 自动发现其他对等设备。 (应用 / 文件共享)
README
# airpaste
A 1-1 network pipe that auto discovers other peers using mdns
```
npm install -g airpaste
```## Usage
On one machine run
```
echo hello world | airpaste
```On another one run
```
airpaste
```If the two machines are on the same network the second one will now print `hello world`.
Optionally you can provide an pipe name as the second argument```
echo only streams to test | airpaste test
```That way the output only gets send to another user doing `airpaste test`
## Sharing files
You can use airpaste to share files across the network by piping them to/from airpaste
On one machine do
```
airpaste < my.file
```On another
```
airpaste > my.file
```Since airpaste just outputs to stdout you can also do stuff like piping movies/music to mplayer (or any other program that supports streaming to stdin)
On one machine
```
airpaste | mplayer -
```On another
```
airpaste < movie.mp4
```## API
You can also use this module from node
``` js
var airpaste = require('airpaste')
var stream = airpaste()process.stdin.pipe(stream).pipe(process.stdout)
```Optionally you can pass a namespace to `airpaste()`
## Security Note
Data moves over the network without encryption and could be captured. Only intended for use on trusted networks.
## License
MIT