Socket
Socket
Sign inDemoInstall

@acme-ra/client

Package Overview
Dependencies
23
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @acme-ra/client

JavaScript/TypeScript client library for the ACME API


Version published
Weekly downloads
106
decreased by-0.93%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

@acme-ra/client

This project provides a JavaScript/TypeScript client API into the ACME API

  • Installation
  • Usage

Installation

Using NPM:

npm install @acme-ra/client

Using Yarn:

yarn add @acme-ra/client

Usage

NodeJS

const acme = require("@acme-ra/client");

NodeJS requires to set WebCrypto provider and fetch function to client.

const fetch = require("node-fetch");
const { Crypto } = require("@peculiar/webcrypto");

const crypto = new Crypto();
const alg = { name: "ECDSA", namedCurve: "P-256" };
const keys = await crypto.subtle.generateKey(alg, false, ["sign", "verify"]);

const client = await ApiClient.create(
  keys,
  "http://localhost:4000/acme/directory",
  {
    fetch,
    crypto,
  });

Browser

Every release of @acme-ra/client will have new build of ./build/acme.min.js for use in the browser. To get access to module classes use acme global variable.

WARN: We recommend hosting and controlling your own copy for security reasons

<script src="https://unpkg.com/@acme-ra/client"></script>

Keywords

FAQs

Last updated on 21 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