Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Mar 1, 2024
1 parent 7b6072b commit 0b66be7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ more space efficient encoding than base64
Encoding:

```ts
import { encode } from "https://deno.land/x/base91/base91.ts";
import { encode } from "https://deno.land/x/base91@v1.1.1/base91.ts";
const encoder = new TextEncoder(); //converts utf-8 string to Uint8Array
const input = encoder.encode("test"); //Uint8Array(4) [ 116, 101, 115, 116 ]
const result = encode(input); //"fPNKd"
Expand All @@ -18,7 +18,7 @@ const result = encode(input); //"fPNKd"
Decoding:

```ts
import { decode } from "https://deno.land/x/base91/base91.ts";
import { decode } from "https://deno.land/x/base91@v1.1.1/base91.ts";
const decoder = new TextDecoder("utf-8"); //used to convert Uint8Array to utf-8 string
const result = decode("fPNKd"); //Uint8Array(4) [ 116, 101, 115, 116 ]
const output = decoder.decode(result); //"test"
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@opliko/base91",
"version": "1.1.0",
"version": "1.1.1",
"exports": "./base91.ts"
}

0 comments on commit 0b66be7

Please sign in to comment.