# airpaste

> A 1-1 network pipe that auto discovers other peers using mdns

Latest version **1.0.9** (published 2015-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install airpaste
pnpm add airpaste
yarn add airpaste
bun add airpaste
```

Provides the command `airpaste`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2015-04-08 |
| First published | 2015-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 826 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/airpaste
- Repository: https://github.com/mafintosh/airpaste
- Issues: https://github.com/mafintosh/airpaste/issues
- npm.io page: https://npm.io/package/airpaste

## Dependencies (4)

- [once](https://npm.io/package/once.md) ^1.3.1
- [duplexify](https://npm.io/package/duplexify.md) ^3.2.0
- [multicast-dns](https://npm.io/package/multicast-dns.md) ^2.0.0
- [network-address](https://npm.io/package/network-address.md) ^1.0.0

## Recent versions

- 1.0.9 (latest) — 2015-04-08
- 1.0.8 — 2015-03-22
- 1.0.7 — 2015-03-21
- 1.0.6 — 2015-03-21
- 1.0.5 — 2015-03-21
- 1.0.4 — 2015-03-21
- 1.0.3 — 2015-03-21
- 1.0.2 — 2015-03-21
- 1.0.1 — 2015-03-21
- 1.0.0 — 2015-03-21

## 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()`

## License

MIT

---
_Source: https://npm.io/package/airpaste · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
