summaryrefslogtreecommitdiff
path: root/std/encoding/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding/README.md')
-rw-r--r--std/encoding/README.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/std/encoding/README.md b/std/encoding/README.md
index edfbeacc5..3c60c6fcd 100644
--- a/std/encoding/README.md
+++ b/std/encoding/README.md
@@ -187,7 +187,7 @@ function is as follows:
| :--: | :--------: | :--------: |
| Deno | rust | typescript |
-- **`options`** are options for the delimiter-seprated output.
+- **`options`** are options for the delimiter-separated output.
- **`headers?: boolean`**: Whether or not to include the row of headers.
Default: `true`
@@ -538,18 +538,18 @@ console.log(encode(binaryData));
// => LpTqp
```
-### Specifying a standard and delimeter
+### Specifying a standard and delimiter
By default all functions are using the most popular Adobe version of ascii85 and
-not adding any delimeter. However, there are three more standards supported -
-btoa (different delimeter and additional compression of 4 bytes equal to 32),
+not adding any delimiter. However, there are three more standards supported -
+btoa (different delimiter and additional compression of 4 bytes equal to 32),
[Z85](https://rfc.zeromq.org/spec/32/) and
[RFC 1924](https://tools.ietf.org/html/rfc1924). It's possible to use a
different encoding by specifying it in `options` object as a second parameter.
-Similarly, it's possible to make `encode` add a delimeter (`<~` and `~>` for
-Adobe, `xbtoa Begin` and `xbtoa End` with newlines between the delimeters and
-encoded data for btoa. Checksums for btoa are not supported. Delimeters are not
+Similarly, it's possible to make `encode` add a delimiter (`<~` and `~>` for
+Adobe, `xbtoa Begin` and `xbtoa End` with newlines between the delimiters and
+encoded data for btoa. Checksums for btoa are not supported. Delimiters are not
supported by other encodings.)
encoding examples:
@@ -562,9 +562,9 @@ import {
const binaryData = new Uint8Array([136, 180, 79, 24]);
console.log(encode(binaryData));
// => LpTqp
-console.log(encode(binaryData, { standard: "Adobe", delimeter: true }));
+console.log(encode(binaryData, { standard: "Adobe", delimiter: true }));
// => <~LpTqp~>
-console.log(encode(binaryData, { standard: "btoa", delimeter: true }));
+console.log(encode(binaryData, { standard: "btoa", delimiter: true }));
/* => xbtoa Begin
LpTqp
xbtoa End */