pw-js-api 0.0.8-dev.774d27b → 0.0.10-dev.c73f009
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# PW-JS-Api
|
|
2
2
|
|
|
3
|
-
[PixelWalker](https://pixelwalker.net) API implementation for Node.js, Bun and modern browsers.
|
|
4
|
-
|
|
3
|
+
[PixelWalker](https://pixelwalker.net) API implementation for Node.js, Bun and modern browsers. NPM can be available here: https://www.npmjs.com/package/pw-js-api
|
|
5
4
|
|
|
6
5
|
Some of the typings may be incomplete, please let me know on discord (doomester) if you need help or clarifications.
|
|
7
6
|
|
|
@@ -32,11 +31,11 @@ bun i pw-js-api
|
|
|
32
31
|
You could use a CDN like jsdelivr or unpkg. You can put this in your HTML page:
|
|
33
32
|
|
|
34
33
|
```html
|
|
35
|
-
<script src="https://cdn.jsdelivr.net/npm/pw-js-api@0.0.
|
|
34
|
+
<script src="https://cdn.jsdelivr.net/npm/pw-js-api@0.0.9/browser/pw.prod.js"></script>
|
|
36
35
|
```
|
|
37
36
|
|
|
38
37
|
```html
|
|
39
|
-
<script src="https://cdn.jsdelivr.net/npm/pw-js-api@0.0.
|
|
38
|
+
<script src="https://cdn.jsdelivr.net/npm/pw-js-api@0.0.9/browser/pw.dev.js"></script>
|
|
40
39
|
```
|
|
41
40
|
|
|
42
41
|
When you have these scripts in your HTML file, you will be able to use the global variable PW which contains PWGameClient, PWApiClient and Constants.
|