diff --git a/README.md b/README.md index 35699b7..d0aa6d1 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ and its page API matches CheerpJ's, so existing pages can switch. ## Use it in a page ```sh -pnpm add java-web +pnpm add @project516/java-web ``` -Serve `node_modules/java-web/dist/` as static files, then: +Serve `node_modules/@project516/java-web/dist/` as static files, then: ```html @@ -27,11 +27,11 @@ Serve `node_modules/java-web/dist/` as static files, then: ## Use it under Node ```sh -npx java-web -cp classes Main # or: npx java-web -jar app.jar +npx @project516/java-web -cp classes Main # or: npx @project516/java-web -jar app.jar ``` ```js -import { runNode } from "java-web"; +import { runNode } from "@project516/java-web"; const code = await runNode({ classpath: ["classes"], mainClass: "Main" }); ``` diff --git a/docs/browser.md b/docs/browser.md index 61eb173..956ca8c 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -1,7 +1,7 @@ # Using java-web in a page The npm package holds the built files: `java-web.js`, `java-web-worker.js`, -`boot.pack` and `jdk/` for pages, and `node.js` for Node ([node.md](node.md)). Serve `node_modules/java-web/dist/` as static files +`boot.pack` and `jdk/` for pages, and `node.js` for Node ([node.md](node.md)). Serve `node_modules/@project516/java-web/dist/` as static files and load `java-web.js` with a classic `