Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@agreed/client

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agreed/client

agreed client, testing utilities

  • 5.1.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
122
increased by10.91%
Maintainers
2
Weekly downloads
 
Created
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

Package last updated on 28 May 2020

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