@agreed/client

    5.2.1 • Public • Published

    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)
      })

    Install

    npm i @agreed/client

    DownloadsWeekly Downloads

    918

    Version

    5.2.1

    License

    MIT

    Unpacked Size

    10.7 kB

    Total Files

    17

    Last publish

    Collaborators

    • yosuke-furukawa
    • maxmellon