facebetter-core 1.0.0
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 +36 -0
- package/dist/facebetter-core.js +14 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# facebetter-core
|
|
2
|
+
|
|
3
|
+
WebAssembly core module for Facebetter. This package contains the compiled WASM binary embedded in a JavaScript file.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install facebetter-core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
This package is primarily used by `facebetter` SDK. You typically don't need to use it directly.
|
|
14
|
+
|
|
15
|
+
If you need to use it directly:
|
|
16
|
+
|
|
17
|
+
```javascript
|
|
18
|
+
import createFaceBetterModule from 'facebetter-core';
|
|
19
|
+
|
|
20
|
+
const Module = await createFaceBetterModule({
|
|
21
|
+
// Emscripten module options
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// Module is now ready to use
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Build
|
|
28
|
+
|
|
29
|
+
This package is built by CMake when compiling for WebAssembly (Emscripten). The output file `facebetter-core.js` is generated in the `dist/` directory.
|
|
30
|
+
|
|
31
|
+
## Note
|
|
32
|
+
|
|
33
|
+
- The WASM binary and data files are embedded in the JS file (SINGLE_FILE=1)
|
|
34
|
+
- This is an internal package, typically used by `facebetter` SDK
|
|
35
|
+
- Version should match the `facebetter` SDK version
|
|
36
|
+
|