-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,20 +41,20 @@ JavaScript: | |
|
||
```javascript | ||
// Deno.land/x | ||
import base64 from "https://deno.land/x/b64@1.1.28/src/base64.js"; | ||
import base64 from "https://deno.land/x/b64@2.0.0/src/base64.ts"; | ||
|
||
// ... or jsr.io | ||
import base64 from "jsr:@hexagon/base64@1.1.28"; | ||
import base64 from "jsr:@hexagon/base64@2.0.0"; | ||
``` | ||
|
||
TypeScript: | ||
|
||
``` | ||
// Deno.land/x | ||
import { base64 } from "https://deno.land/x/b64@1.1.28/src/base64.js"; | ||
import { base64 } from "https://deno.land/x/b64@2.0.0/src/base64.ts"; | ||
// ... or jsr.io | ||
import { base64 } from "jsr:@hexagon/base64@1.1.28"; | ||
import { base64 } from "jsr:@hexagon/base64@2.0.0"; | ||
``` | ||
|
||
### Browser | ||
|
@@ -63,21 +63,21 @@ import { base64 } from "jsr:@hexagon/[email protected]"; | |
|
||
- Download the latest [zipball](https://github.com/Hexagon/base64/archive/refs/heads/master.zip). | ||
- Unpack. | ||
- Grab `base64.min.js` (UMD and standalone) or `base64.min.mjs` (ES-module) from the [dist/](/dist) folder. | ||
- Grab `base64.umd.js` (UMD and standalone) or `base64.js` (ES-module) from the [dist/](/dist) folder. | ||
|
||
#### CDN | ||
|
||
For a [UMD](https://github.com/umdjs/umd)-module (standalone, [RequireJS](https://requirejs.org/), etc.): | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@hexagon/base64@1/dist/base64.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@hexagon/base64@2/dist/base64.umd.js"></script> | ||
``` | ||
|
||
As an [ES-module](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules): | ||
|
||
```html | ||
<script type="module"> | ||
import base64 from "https://cdn.jsdelivr.net/npm/@hexagon/base64@1/dist/base64.min.mjs"; | ||
import base64 from "https://cdn.jsdelivr.net/npm/@hexagon/base64@2/dist/base64.js"; | ||
// ... see 'Usage' section ... | ||
</script> | ||
``` |