Updated Remote Script Execution (markdown)

Namhyeon Go 2024-09-26 02:40:22 +09:00
parent 03f33f7a4c
commit 5b55e5f1c4

@ -2,20 +2,20 @@
Starting from version 0.2.7.19, WelsonJS supports the Remote Script Execution feature. You can test it as follows:
```sh
cscript app.js https://oss.catswords.net/helloworld.js
cscript app.js https://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js
```
If you want to use it within your code, you can do it like this:
```js
var HELO = require("https://oss.catswords.net/helloworld.js");
var HELO = require("https://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js");
HELO.main();
```
If it works correctly, the console will output the following results:
```
[*] Requested URL: https://oss.catswords.net/helloworld.js
[*] Requested URL: https://pub-f926e14287b340cd9eff33731bb25329.r2.dev/helloworld.js
[*] Received 81 bytes
[*] Hello world
```