Socket
Socket
Sign inDemoInstall

btrz-pact-s3

Package Overview
Dependencies
156
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    btrz-pact-s3

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


Version published
Weekly downloads
1
decreased by-91.67%
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 02 Nov 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc