Skip to content

Latest commit

 

History

History
 
 

mail-parser-wasm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

mail-parser-wasm web and cf worker

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 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