3.0.1 • Published 5 years ago

agreed-client v3.0.1

Weekly downloads
213
License
MIT
Repository
-
Last release
5 years ago

agreed-client

Build Status

An agreed client for check response.

Install

$ npm install agreed-client -D

Usage

const agreedClient = require('agreed-client')

const {
  client,
  agrees,
  reporter,
} = agreedClient({
  path: './test/agreed.json5', // required
  scheme: 'http', // optional, default is http
  host: 'localhost', // optional, default is localhost
  port: 30103, // optional, default is 80
  defaultRequestHeaders: {
    'x-jwt-token': 'foobarbaz'
  }
})

client.requestPromise(agrees)
  .then(reporter)
  .catch((e) => {
    console.error(e)
    process.exit(1)
  })
3.0.1

5 years ago

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

7 years ago

1.0.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago