@r3ply/wasm
v0.0.2
Published
Wasm bindings of useful dependencies for the r3ply commenting system
Readme
r3ply-wasm
This crate exports several useful rust functions with wasm bindings for use within the downstream @r3ply/lib package.
See r3ply.com to learn more about the r3ply commenting system.
Build/Install
# build bundler + node targets, patch bundler imports for cloudflare workers, copy package json over
pnpm build:wasm
# (optional) if you want to generate a tar file for quick exports for testing
pnpm packThen you can use everything like you would a normal JS/TS module, in both node and bundler projects.
import { sanitize_html } from '@r3ply/wasm'Deploying
This project generates a package.json file within pkg and that's what needs to be deployed.
Tera 2 Templating Language
See the templating language docs for more.
