# reshuffle-base-connector

> This package contains utilities for implementing new Reshuffle connectors

Latest version **0.0.11** (published 2020-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install reshuffle-base-connector
pnpm add reshuffle-base-connector
yarn add reshuffle-base-connector
bun add reshuffle-base-connector
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2020-09-16 |
| First published | 2020-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 25.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Amir Shevat, Christophe Gachiniard, Nimo Naamani |
| Maintainers | ashevat |
| Keywords | Reshuffle, integrations, workflows |

## Links

- npm: https://www.npmjs.com/package/reshuffle-base-connector
- Repository: https://github.com/reshufflehq/reshuffle-base-connector
- Homepage: https://github.com/reshufflehq/reshuffle-base-connector#readme
- Issues: https://github.com/reshufflehq/reshuffle-base-connector/issues
- npm.io page: https://npm.io/package/reshuffle-base-connector

## Dependencies (3)

- [nanoid](https://npm.io/package/nanoid.md) ^3.1.12
- [@types/express](https://npm.io/package/@types/express.md) ^4.17.8
- [@types/winston](https://npm.io/package/@types/winston.md) ^2.4.4

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.11 (latest) — 2020-09-16
- 0.0.10 — 2020-09-10
- 0.0.9 — 2020-09-10
- 0.0.8 — 2020-09-10
- 0.0.7 — 2020-09-10
- 0.0.6 — 2020-09-09
- 0.0.5 — 2020-09-08
- 0.0.4 — 2020-09-03
- 0.0.3 — 2020-09-02
- 0.0.2 — 2020-09-02
- 0.0.1 — 2020-09-01

## README

# reshuffle-base-connector
Base class for Reshuffle Connectors

## Get started
To implement a new connector, create a new class extending the BaseConnector class from this package.

Example:
```js
import { BaseConnector } from 'reshuffle-base-connector'

class MyCustomConnector extends BaseConnector<MyConnectorConfigOptions, MyConnectorEventOptions> {
    
  constructor(options, id /* your custom options */) {
    super(id)
    // Set your custom options here
  }
    
  onStart() {
    // ...
  }
    
  onStop() {
    // ...
  }
 
  on(options: EventOptionsType, eventId: EventConfiguration['id']): EventConfiguration {
    // ...
  }

}
```

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