Socket
Socket
Sign inDemoInstall

btrz-pact-s3

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btrz-pact-s3

The S3 pact lib for Betterez


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 31 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc