From 3d65177dbcaf6d08c7e4a412beece8ee6939d466 Mon Sep 17 00:00:00 2001 From: tokiedokie Date: Sun, 4 Oct 2020 21:18:36 +0900 Subject: docs(std): version all imports in README (#7442) Use $STD_VERSION in std/ README files to automatically display proper version. --- std/hash/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'std/hash') 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"); -- cgit v1.2.3