File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,15 +44,25 @@ is written in Deno using WebUI as the GUI library.
4444## Installation
4545
4646Specific version:
47- ` import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts"; `
4847
49- Latest version: ` import { WebUI } from "https://deno.land/x/webui/mod.ts"; `
48+ ``` js
49+ import { WebUI } from " @webui/deno-webui@2.5.4" ;
50+ // Or
51+ import { WebUI } from " https://deno.land/x/webui@2.5.4/mod.ts" ;
52+ ```
53+
54+ Latest version:
55+
56+ ``` js
57+ import { WebUI } from " jsr:@webui/deno-webui" ;
58+ // Or
59+ import { WebUI } from " https://deno.land/x/webui/mod.ts" ;
60+ ```
5061
5162## Minimal Example
5263
5364``` js
54- import { WebUI } from " https://deno.land/x/webui@2.5.4/mod.ts" ;
55- // Or import { WebUI } from "jsr:@webui/deno-webui";
65+ import { WebUI } from " jsr:@webui/deno-webui" ;
5666
5767const myWindow = new WebUI ();
5868myWindow .show (' <html><script src="webui.js"></script> Hello World! </html>' );
Original file line number Diff line number Diff line change 44// To import from local (Debugging and Development)
55// import { WebUI } from "../../mod.ts";
66
7- // To import from online `https://deno.land` (Production)
8- import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts" ;
7+ // To import from online package registry (Production)
8+ import { WebUI } from "@webui/deno-webui@2.5.4" ; // import {WebUI} from " https://deno.land/x/webui@2.5.4/mod.ts";
99
1010// Return HTTP header + file raw binary content
1111const getFile = async (
Original file line number Diff line number Diff line change 44// To import from local (Debugging and Development)
55// import { WebUI } from "../../mod.ts";
66
7- // To import from online `https://deno.land` (Production)
8- import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts" ;
7+ // To import from online package registry (Production)
8+ import { WebUI } from "@webui/deno-webui@2.5.4" ; // import {WebUI} from " https://deno.land/x/webui@2.5.4/mod.ts";
99
1010function allEvents ( e : WebUI . Event ) {
1111 /*
Original file line number Diff line number Diff line change 44// To import from local (Debugging and Development)
55// import { WebUI } from "../../mod.ts";
66
7- // To import from online `https://deno.land` (Production)
8- import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts" ;
7+ // To import from online package registry (Production)
8+ import { WebUI } from "@webui/deno-webui@2.5.4" ; // import {WebUI} from " https://deno.land/x/webui@2.5.4/mod.ts";
99
1010const myHtml = `<!DOCTYPE html>
1111<html>
Original file line number Diff line number Diff line change 44// To import from local (Debugging and Development)
55// import { WebUI } from "../../mod.ts";
66
7- // To import from online `https://deno.land` (Production)
8- import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts" ;
7+ // To import from online package registry (Production)
8+ import { WebUI } from "@webui/deno-webui@2.5.4" ; // import {WebUI} from " https://deno.land/x/webui@2.5.4/mod.ts";
99
1010const myHtml = `<!DOCTYPE html>
1111<html>
Original file line number Diff line number Diff line change 1616 * ## Minimal Example
1717 *
1818 * ```ts
19- * import { WebUI } from "https:// deno.land/x/ webui@2.5.4/mod.ts ";
19+ * import { WebUI } from "@webui/ deno- webui@2.5.4";
2020 *
2121 * const myWindow = new WebUI();
2222 * myWindow.show("<html><script src=\"webui.js\"></script> Hello World! </html>");
You can’t perform that action at this time.
0 commit comments