0.0.26 • Published 1 month ago

@acme-ra/client v0.0.26

Weekly downloads
115
License
AGPL
Repository
github
Last release
1 month ago

@acme-ra/client

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

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>
0.0.25

1 month ago

0.0.26

1 month ago

0.0.20

12 months ago

0.0.19

12 months ago

0.0.18

1 year ago

0.0.15-alpha.1

2 years ago

0.0.15

2 years ago

0.0.14-alpha.4

2 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.4

3 years ago

0.0.1-beta.2

4 years ago