# pong

> Pong in your terminal. Why not?

Latest version **0.1.1** (published 2012-04-24) · 0 weekly downloads

## Install

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

Provides the command `pong`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2012-04-24 |
| First published | 2012-04-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Hugh Kennedy |
| Maintainers | hughsk |

## Links

- npm: https://www.npmjs.com/package/pong
- Repository: git@github.com:hughsk/pong
- npm.io page: https://npm.io/package/pong

## Dependencies (4)

- [ansi](https://npm.io/package/ansi.md) 0.1.x
- [optimist](https://npm.io/package/optimist.md) 0.3.x
- [socket.io](https://npm.io/package/socket.io.md) 0.9.x
- [underscore](https://npm.io/package/underscore.md) 1.3.x

## Recent versions

- 0.1.1 (latest) — 2012-04-24
- 0.0.3 — 2012-04-22
- 0.0.2 — 2012-04-22

## README

# Pong

In Node, with your terminal. Thanks go to [TooTallNate](//github.com/TooTallNate)'s [ansi](http://search.npmjs.org/#/ansi) module for terminal trickery.

## Installation

``` bash
npm install -g pong
```

## Usage

Pretty straight-forward, once it's installed just type `pong` into your terminal to get started. There's a couple of options too:

``` bash
Usage: pong [-b|-h|-s|-W <width>|-H <height>|-S <port>|-c <host>]

Options:
  -W, --width    Set the width of the playing field           [default: 80]
  -H, --height   Set the height of the playing field          [default: 24]
  -b, --beep     Enable beeping                               [boolean]  [default: false]
  -h, --help     Help!                                        [boolean]
  -s, --safer    Safer output for running over SSH/Mosh/etc.  [boolean]  [default: false]
  -S, --server   Host a Pong server instead of playing Pong.
  -c, --connect  Connect to another Pong server 
```

## Multiplayer

It wouldn't be a Node clone without some async-realtime-multiplayer features, so that's built-in too. To start a new game with a random stranger, just type:

``` bash
pong --connect
```

And wait. Someone else might join eventually, and you'll get matched up automatically.

You can host your own pong server like so:

``` bash
pong --server 80
```

Where `80` is the port your want to run it on. Then connecting it you just need to supply the new server's address and port after the `connect` flag:

``` bash
pong --connect http://192.0.0.12:80
```

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