add npm packaging info

This commit is contained in:
ading2210 2024-01-28 22:56:14 -08:00
parent a7be55fd23
commit 58a8f2259e
5 changed files with 33 additions and 5 deletions

View file

@ -26,7 +26,7 @@ sudo apt install make cmake emscripten autoconf automake libtool pkg-config wget
The build script will generate `client/out/libcurl.js` as well as `client/out/libcurl_module.mjs`, which is an ES6 module. You can supply the following arguments to the build script to control the build:
- `release` - Use all optimizations.
- `single_file` - Include the WASM binary in the outputted JS using base64.
- `all` - Build twice, once normally, and once as a single file.
## Javascript API: