# btrz-pact-s3

> A consumer-driven Pact library for NodeJs to publish pacts to AWS S3 and verify them

Latest version **0.4.8** (published 2016-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install btrz-pact-s3
pnpm add btrz-pact-s3
yarn add btrz-pact-s3
bun add btrz-pact-s3
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.8 |
| Published | 2016-11-02 |
| First published | 2016-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Betterez |
| Maintainers | betterez |
| Keywords | pact |

## Links

- npm: https://www.npmjs.com/package/btrz-pact-s3
- Repository: https://github.com/Betterez/btrz-pact-s3
- Issues: https://github.com/Betterez/btrz-pact-s3/issues
- npm.io page: https://npm.io/package/btrz-pact-s3

## Dependencies (4)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.6.11
- [btrz-logger](https://npm.io/package/btrz-logger.md) ^1.2.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.1.1
- [@pact-foundation/pact-node](https://npm.io/package/@pact-foundation/pact-node.md) ^4.5.4

## Recent versions

- 0.4.8 (latest) — 2016-11-02
- 0.4.7 — 2016-11-01
- 0.4.6 — 2016-11-01
- 0.4.5 — 2016-11-01
- 0.4.4 — 2016-11-01
- 0.4.3 — 2016-11-01
- 0.4.2 — 2016-11-01
- 0.4.1 — 2016-10-31
- 0.4.0 — 2016-10-31
- 0.3.0 — 2016-10-31
- 0.2.0 — 2016-10-27
- 0.1.0 — 2016-10-26

## README

# btrz-pact-s3
Pact publish and verify, serving files in AWS S3 and based in the Pact Foundation https://docs.pact.io

# Install
run `npm install btrz-pact-s3 --save`

# Using btrz-pact-s3
    let options = {
      accessKeyId: "your_s3_key",
      secretAccessKey: "your_s3_secret_key",
      bucket: "your_s3_bucket"
    }
    
    const BtrzPactS3 = require("btrz-pact-s3").BtrzPactS3,
      btrzPactS3 = new BtrzPactS3(options, logger);

The `logger` is optional, if you need to log errors and information. We recommend to use a logger service.

# Publishing pacts      
    btrzPactS3.publishPacts([`${__dirname}/pacts`])
      .then(() => {
        console.log("Pacts published with success!");
      })
      .catch((err) => {
        console.log("Error publishing pacts", err);
      });
You can use individual pact files in the array or just a path where they are.

# Test
`npm test`

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