mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-07 05:02:50 +08:00
mail-parser-wasm web and cf worker
mail-parser-wasm
mail-parser-wasm usage
pnpm add mail-parser-wasm
import { parse_message } from 'mail-parser-wasm'
const parsedEmail = parse_message(rawEmail);
mail-parser-wasm build
wasm-pack build --release
wasm-pack publish
mail-parser-wasm-worker
mail-parser-wasm-worker usage
pnpm add mail-parser-wasm-worker
import { parse_message_wrapper } from 'mail-parser-wasm-worker'
const parsedEmail = parse_message_wrapper(rawEmail);
mail-parser-wasm-worker build
wasm-pack build --out-dir web --target web --release
find web/ -type f ! -name '*.json' ! -name '.gitignore' -exec cp {} worker/ \;
# modify worker/package.json version or whatever
pnpm publish worker --no-git-checks