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/archive/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'std/archive') diff --git a/std/archive/README.md b/std/archive/README.md index b14fd9375..d6e148322 100644 --- a/std/archive/README.md +++ b/std/archive/README.md @@ -3,7 +3,7 @@ ## Tar ```ts -import { Tar } from "https://deno.land/std/archive/tar.ts"; +import { Tar } from "https://deno.land/std@$STD_VERSION/archive/tar.ts"; const tar = new Tar(); const content = new TextEncoder().encode("Deno.land"); @@ -27,9 +27,9 @@ writer.close(); ## Untar ```ts -import { Untar } from "https://deno.land/std/archive/tar.ts"; -import { ensureFile } from "https://deno.land/std/fs/ensure_file.ts"; -import { ensureDir } from "https://deno.land/std/fs/ensure_dir.ts"; +import { Untar } from "https://deno.land/std@$STD_VERSION/archive/tar.ts"; +import { ensureFile } from "https://deno.land/std@$STD_VERSION/fs/ensure_file.ts"; +import { ensureDir } from "https://deno.land/std@$STD_VERSION/fs/ensure_dir.ts"; const reader = await Deno.open("./out.tar", { read: true }); const untar = new Untar(reader); -- cgit v1.2.3