summaryrefslogtreecommitdiff
path: root/std/hash
diff options
context:
space:
mode:
Diffstat (limited to 'std/hash')
-rw-r--r--std/hash/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/std/hash/README.md b/std/hash/README.md
index 3000cbd05..ec5d068e9 100644
--- a/std/hash/README.md
+++ b/std/hash/README.md
@@ -7,7 +7,7 @@
You can create a new Hasher instance by calling `createHash` defined in mod.ts.
```ts
-import { createHash } from "https://deno.land/std/hash/mod.ts";
+import { createHash } from "https://deno.land/std@$STD_VERSION/hash/mod.ts";
const hash = createHash("md5");
// ...
@@ -19,7 +19,7 @@ You can use `update` method to feed data into your hash instance. Call `digest`
method to retrive final hash value in ArrayBuffer.
```ts
-import { createHash } from "https://deno.land/std/hash/mod.ts";
+import { createHash } from "https://deno.land/std@$STD_VERSION/hash/mod.ts";
const hash = createHash("md5");
hash.update("Your data here");
@@ -30,7 +30,7 @@ Please note that `digest` invalidates the hash instance's internal state.
Calling `digest` more than once will throw an Error.
```ts
-import { createHash } from "https://deno.land/std/hash/mod.ts";
+import { createHash } from "https://deno.land/std@$STD_VERSION/hash/mod.ts";
const hash = createHash("md5");
hash.update("Your data here");
@@ -44,7 +44,7 @@ format.
Supported formats are `hex` and `base64` and default format is `hex`.
```ts
-import { createHash } from "https://deno.land/std/hash/mod.ts";
+import { createHash } from "https://deno.land/std@$STD_VERSION/hash/mod.ts";
const hash = createHash("md5");
hash.update("Your data here");
@@ -52,7 +52,7 @@ const hashInHex = hash.toString(); // returns 5fe084ee423ff7e0c7709e9437cee89d
```
```ts
-import { createHash } from "https://deno.land/std/hash/mod.ts";
+import { createHash } from "https://deno.land/std@$STD_VERSION/hash/mod.ts";
const hash = createHash("md5");
hash.update("Your data here");