Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/david-vandensteen/net-keyboard


https://github.com/david-vandensteen/net-keyboard

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# net-keyboard

## Install
```cmd
npm i [email protected]:David-Vandensteen/net-keyboard.git#release/2.0.2
```

## Examples

### Server
```javascript
import { NetKeyboardServer } from 'net-keyboard';

const { log } = console;

new NetKeyboardServer({ port: 8080 })
.on('data', (message) => {
log('data', message);
})
.serve();
```

### Client
```javascript
import { NetKeyboardClient } from 'net-keyboard';

new NetKeyboardClient('127.0.0.1', 8080)
.connect();
```

### Local mode

```javascript
import { NetKeyboardServer } from 'net-keyboard';

const { log } = console;

new NetKeyboardServer()
.on('data', (message) => {
log('data', message);
})
.serve();
```