From 8c6e4e566cf3f01a0d7f921415ca5b224de2ae65 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 23 Nov 2024 15:12:57 -0800 Subject: [PATCH] Update browser and server READMs --- packages/browser/README.md | 27 +++++++++++++++++++++++++-- packages/server/README.md | 2 +- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/packages/browser/README.md b/packages/browser/README.md index 7ef312ec4..06c8755a1 100644 --- a/packages/browser/README.md +++ b/packages/browser/README.md @@ -8,9 +8,10 @@ - [@simplewebauthn/browser](#simplewebauthnbrowser) - [Installation](#installation) + - [Deno v1.43.x or higher](#deno-v143x-or-higher) - [UMD](#umd) - [ES5](#es5) - - [ES2018](#es2018) + - [ES2021](#es2021) - [Usage](#usage) ## Installation @@ -21,6 +22,28 @@ This package is available on **npm**: npm install @simplewebauthn/browser ``` +This package can be installed from **NPM** or **JSR**: + +```sh +$ npm install @simplewebauthn/browser +``` + +```sh +$ npx jsr add @simplewebauthn/browser +``` + +### Deno v1.43.x or higher + +It is also available for import into Deno projects from **deno.land/x** or **JSR**: + +```ts +import {...} from 'https://deno.land/x/simplewebauthn/deno/browser.ts'; +``` + +```sh +$ deno add jsr:@simplewebauthn/browser jsr:@simplewebauthn/types +``` + ### UMD This package can also be installed via **unpkg** by including the following script in your page's @@ -40,7 +63,7 @@ include the `ES5` version: ``` -#### ES2018 +#### ES2021 If you only need to support modern browsers, include the `ES2018` version: diff --git a/packages/server/README.md b/packages/server/README.md index b6c0d7037..0b71f6759 100644 --- a/packages/server/README.md +++ b/packages/server/README.md @@ -21,7 +21,7 @@ $ npm install @simplewebauthn/server ``` ```sh -$ npx jsr add @simplewebauthn/server @simplewebauthn/types +$ npx jsr add @simplewebauthn/server ``` ### Deno v1.43.x or higher