Skip to content

Commit

Permalink
Publish to jsr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Feb 29, 2024
1 parent 5a9e662 commit ee235eb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ Full documentation available at [base64.56k.guru](https://base64.56k.guru)

Node.js: `npm install @hexagon/base64 --save`

Deno: `import base64 from "https://deno.land/x/b64@1.1.28/src/base64.js";`
Deno (x): `import base64 from "https://deno.land/x/b64@1.1.28/src/base64.js";`

Deno (jsr.io): `import base64 from "jsr:@hexagon/base64@1.1.28";`

For browser/cdn usage, refer to the documentation.

Expand Down
5 changes: 4 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"name": "@hexagon/base64",
"version": "1.1.28",
"exports": "./src/base64.js",
"lint": {
"files": {
"include": ["src","test/deno"],
"exclude": ["dist","test/node"]
}
},
},
"fmt": {
"files": {
"include": ["test/deno"]
Expand Down
10 changes: 8 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,21 @@ import base64 from "@hexagon/base64";
JavaScript:

```javascript
// Deno.land/x
import base64 from "https://deno.land/x/b64@1.1.28/src/base64.js";
// ...

// ... or jsr.io
import base64 from "jsr:@hexagon/base64@1.1.28";
```

TypeScript:

```
// Deno.land/x
import { base64 } from "https://deno.land/x/b64@1.1.28/src/base64.js";
// ...
// ... or jsr.io
import { base64 } from "jsr:@hexagon/base64@1.1.28";
```

### Browser
Expand Down

0 comments on commit ee235eb

Please sign in to comment.