summaryrefslogtreecommitdiff
path: root/std/encoding
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/encoding
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/encoding')
-rw-r--r--std/encoding/README.md29
1 files changed, 22 insertions, 7 deletions
diff --git a/std/encoding/README.md b/std/encoding/README.md
index 9dec37a33..80533768e 100644
--- a/std/encoding/README.md
+++ b/std/encoding/README.md
@@ -82,7 +82,7 @@ function is as follows:
### Usage
```ts
-import { parse } from "https://deno.land/std/encoding/csv.ts";
+import { parse } from "https://deno.land/std@$STD_VERSION/encoding/csv.ts";
const string = "a,b,c\nd,e,f";
console.log(
@@ -187,7 +187,10 @@ will output:
### Basic usage
```ts
-import { parse, stringify } from "https://deno.land/std/encoding/toml.ts";
+import {
+ parse,
+ stringify,
+} from "https://deno.land/std@$STD_VERSION/encoding/toml.ts";
const obj = {
bin: [
{ name: "deno", path: "cli/main.rs" },
@@ -236,7 +239,10 @@ Heavily inspired from [js-yaml].
string.
```ts
-import { parse, stringify } from "https://deno.land/std/encoding/yaml.ts";
+import {
+ parse,
+ stringify,
+} from "https://deno.land/std@$STD_VERSION/encoding/yaml.ts";
const data = parse(`
foo: bar
@@ -260,7 +266,7 @@ If your YAML contains multiple documents in it, you can use `parseAll` for
handling it.
```ts
-import { parseAll } from "https://deno.land/std/encoding/yaml.ts";
+import { parseAll } from "https://deno.land/std@$STD_VERSION/encoding/yaml.ts";
const data = parseAll(`
---
@@ -312,7 +318,10 @@ for Deno.
decodes the given RFC4648 base32 representation to a `Uint8Array`.
```ts
-import { decode, encode } from "https://deno.land/std/encoding/base32.ts";
+import {
+ decode,
+ encode,
+} from "https://deno.land/std@$STD_VERSION/encoding/base32.ts";
const b32Repr = "RC2E6GA=";
@@ -334,7 +343,10 @@ Ascii85/base85 encoder and decoder with support for multiple standards.
decodes the given ascii85 representation to a `Uint8Array`.
```ts
-import { decode, encode } from "https://deno.land/std/encoding/ascii85.ts";
+import {
+ decode,
+ encode,
+} from "https://deno.land/std@$STD_VERSION/encoding/ascii85.ts";
const a85Repr = "LpTqp";
@@ -363,7 +375,10 @@ supported by other encodings.)
encoding examples:
```ts
-import { decode, encode } from "https://deno.land/std/encoding/ascii85.ts";
+import {
+ decode,
+ encode,
+} from "https://deno.land/std@$STD_VERSION/encoding/ascii85.ts";
const binaryData = new Uint8Array([136, 180, 79, 24]);
console.log(encode(binaryData));
// => LpTqp