Skip to content

Commit b8eb93c

Browse files
authored
Publish as @project516/java-web (#7)
1 parent c61e3c3 commit b8eb93c

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ and its page API matches CheerpJ's, so existing pages can switch.
77
## Use it in a page
88

99
```sh
10-
pnpm add java-web
10+
pnpm add @project516/java-web
1111
```
1212

13-
Serve `node_modules/java-web/dist/` as static files, then:
13+
Serve `node_modules/@project516/java-web/dist/` as static files, then:
1414

1515
```html
1616
<script src="java-web.js"></script>
@@ -27,11 +27,11 @@ Serve `node_modules/java-web/dist/` as static files, then:
2727
## Use it under Node
2828

2929
```sh
30-
npx java-web -cp classes Main # or: npx java-web -jar app.jar
30+
npx @project516/java-web -cp classes Main # or: npx @project516/java-web -jar app.jar
3131
```
3232

3333
```js
34-
import { runNode } from "java-web";
34+
import { runNode } from "@project516/java-web";
3535
const code = await runNode({ classpath: ["classes"], mainClass: "Main" });
3636
```
3737

‎docs/browser.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Using java-web in a page
22

33
The npm package holds the built files: `java-web.js`, `java-web-worker.js`,
4-
`boot.pack` and `jdk/` for pages, and `node.js` for Node ([node.md](node.md)). Serve `node_modules/java-web/dist/` as static files
4+
`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
55
and load `java-web.js` with a classic `<script>` tag. It finds the other files
66
next to itself, or where `cheerpjInit({ runtime: "/path/to/dist/" })` says.
77

‎docs/node.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ system is the VFS root, and Java sees the host's environment.
77
## Command
88

99
```sh
10-
npx java-web [options] Main [args]
11-
npx java-web [options] -jar app.jar [args]
10+
npx @project516/java-web [options] Main [args]
11+
npx @project516/java-web [options] -jar app.jar [args]
1212
```
1313

1414
| Option | Meaning |
@@ -28,7 +28,7 @@ Other `-X` and HotSpot-only options are ignored.
2828
## From JS
2929

3030
```js
31-
import { runNode } from "java-web";
31+
import { runNode } from "@project516/java-web";
3232

3333
const out = [];
3434
const code = await runNode({

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "java-web",
2+
"name": "@project516/java-web",
33
"version": "0.1.0",
44
"description": "Run Java 25 bytecode in the browser on a JavaScript JVM and the real OpenJDK class library",
55
"keywords": [

0 commit comments

Comments
 (0)