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

@gemeentenijmegen/apiclient

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gemeentenijmegen/apiclient

An HTTP Api Client module. Used for applications requiring mutual TLS, backed by config in AWS.

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
190
increased by21.02%
Maintainers
4
Weekly downloads
 
Created
Source

Gemeente Nijmegen Api Client

An HTTP Api Client module. Used for applications requiring mutual TLS, backed by config in AWS.

How to use

Quickstart:

Install using npm:

npm i @gemeentenijmegen/apiclient

The client expects either the following environment parameters to be set, or to be provided a client certificate, private key and root ca:

MTLS_PRIVATE_KEY_ARN // AWS Arn to the secrets manager ARN holding the private key MTLS_CLIENT_CERT_NAME // The name of an SSM parameter holding the client certificate MTLS_ROOT_CA_NAME // The name of an SSM parameter holding the root ca

// create a client
const apiClient = new ApiClient();
// init (get parameters from store etc.)
await apiClient.init();
// Use the client to request data
const data = await apiClient.requestData('/test', { data: 'test ' },  {'Content-type': 'application/json'});

The request can throw an error, the actual message is logged, a generic Error is thrown.

FAQs

Package last updated on 13 Jun 2022

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