Socket
Socket
Sign inDemoInstall

@agreed/client

Package Overview
Dependencies
24
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @agreed/client

agreed client, testing utilities


Version published
Weekly downloads
97
increased by130.95%
Maintainers
2
Install size
67.2 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 14 Mar 2024

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