# hiot-circuit-breaker

> A promisified version of circuit-breaker-js

Latest version **0.0.3** (published 2016-07-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install hiot-circuit-breaker
pnpm add hiot-circuit-breaker
yarn add hiot-circuit-breaker
bun add hiot-circuit-breaker
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-07-22 |
| First published | 2016-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Johan Dewe |
| Maintainers | dewe |
| Keywords | circuit-breaker, promises |

## Links

- npm: https://www.npmjs.com/package/hiot-circuit-breaker
- Repository: https://github.com/hiotlabs/hiot-circuit-breaker
- Homepage: https://github.com/hiotlabs/hiot-circuit-breaker#readme
- Issues: https://github.com/hiotlabs/hiot-circuit-breaker/issues
- npm.io page: https://npm.io/package/hiot-circuit-breaker

## Dependencies (1)

- [circuit-breaker-js](https://npm.io/package/circuit-breaker-js.md) 0.0.1

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-07-22
- 0.0.2 — 2016-07-22
- 0.0.1 — 2016-07-22

## README

# hiot-circuit-breaker
A promisified version of [circuit-breaker-js](https://github.com/yammer/circuit-breaker-js)

## Usage
For options and default values, see https://github.com/yammer/circuit-breaker-js/blob/master/README.md.

```javascript
var CircuitBreaker = require('hiot-circuit-breaker');

var breaker = new CircuitBreaker(/* options */);

var command = fetch('http://another-api.com/stuff');
var fallback = Promise.resolve('no stuff');

breaker.run(command, fallback)
  .then(x => console.log(x));
```

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