1.0.1 • Published 3 years ago

smee-client-patched v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Installation

Install the client with:

$ npm install -g smee-client

Usage

CLI

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

$ smee

Run smee --help for usage.

Node Client

const SmeeClient = require('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()