facebetter-core
v1.4.2
Published
Facebetter WebAssembly core module (WASM binary embedded in JS)
Maintainers
Readme
facebetter-core
WebAssembly core module for Facebetter. This package contains the compiled WASM binary embedded in a JavaScript file.
Installation
npm install facebetter-coreUsage
This package is primarily used by facebetter SDK. You typically don't need to use it directly.
If you need to use it directly:
import createFaceBetterModule from 'facebetter-core';
const Module = await createFaceBetterModule({
// Emscripten module options
});
// Module is now ready to useBuild
This package is built by CMake when compiling for WebAssembly (Emscripten). The output file facebetter-core.js is generated in the dist/ directory.
Note
- The WASM binary and data files are embedded in the JS file (SINGLE_FILE=1)
- This is an internal package, typically used by
facebetterSDK - Version should match the
facebetterSDK version
