summaryrefslogtreecommitdiff
path: root/std/archive
diff options
context:
space:
mode:
authortokiedokie <thetokiedokie@gmail.com>2020-10-04 21:18:36 +0900
committerGitHub <noreply@github.com>2020-10-04 14:18:36 +0200
commit3d65177dbcaf6d08c7e4a412beece8ee6939d466 (patch)
tree53b5954f612daa559f8e893471083f854ea63464 /std/archive
parentec963238230c7f92a29da27ced0a2ec706af92d0 (diff)
docs(std): version all imports in README (#7442)
Use $STD_VERSION in std/ README files to automatically display proper version.
Diffstat (limited to 'std/archive')
-rw-r--r--std/archive/README.md8
1 files changed, 4 insertions, 4 deletions
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);