From 5712d2750736b60c651686c53509863988aab40c Mon Sep 17 00:00:00 2001 From: Brian Turek <2017685+Caligatio@users.noreply.github.com> Date: Fri, 26 Jun 2026 12:53:44 +0200 Subject: [PATCH 1/2] Document how to import jsSHA with Deno --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 208d80a..b4bd25d 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ const jsSHA1 = require("jssha/dist/sha1"); /* Alternatively, you can load it as an ESM (Node.js v13+ or using * --experimental-modules in v12) */ import jsSHA from "jssha"; +/* For Deno v2+, you can simply use the npm: prefix on the import */ +import jsSHA from "npm:jssha"; ``` ### Hashing From 39d4971a121103ac2cde21518525c2689d782e34 Mon Sep 17 00:00:00 2001 From: Brian Turek <2017685+Caligatio@users.noreply.github.com> Date: Fri, 26 Jun 2026 12:59:54 +0200 Subject: [PATCH 2/2] Break Deno documentation out to own block --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b4bd25d..3d41c4e 100644 --- a/README.md +++ b/README.md @@ -47,10 +47,20 @@ const jsSHA1 = require("jssha/dist/sha1"); /* Alternatively, you can load it as an ESM (Node.js v13+ or using * --experimental-modules in v12) */ import jsSHA from "jssha"; -/* For Deno v2+, you can simply use the npm: prefix on the import */ +``` + +#### Deno + +jsSHA simply works with Deno via the `npm:` import specifier: + +```typescript import jsSHA from "npm:jssha"; +/* Limited variant files are also available */ +import jsSHA1 from "npm:jssha/sha1"; ``` +TypeScript types are resolved automatically from the package. + ### Hashing Instantiate a new `jsSHA` object with the desired hash variant, input format,