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

https://github.com/probot/smee-client

🔴 Receives payloads then sends them to your local server
https://github.com/probot/smee-client

Last synced: about 1 year ago
JSON representation

🔴 Receives payloads then sends them to your local server

Awesome Lists containing this project

README

          

smee-client


Client and CLI for smee.io, a service that delivers webhooks to your local development environment.


NPM Build Status Codecov

Looking for probot/smee.io?

## Installation

Install the client with:

```sh
npm install -g smee-client
```

## Usage

### CLI

The `smee` command will forward webhooks from smee.io to your local development environment.

```sh
smee
```

Run `smee --help` for usage.

### Node Client

```js
import SmeeClient from 'smee-client'

const smee = new SmeeClient({
source: 'https://smee.io/abc123',
target: 'http://localhost:3000/events',
logger: console
})

const events = smee.start()

// Stop forwarding events
events.close()
```

#### Proxy Servers

By default, the `SmeeClient` API client makes use of the standard proxy server environment variables.