a go webassembly(wasm) port for filtering out hidden hexcodes from text
Note
the package is in its early development, be causious!
install the lightweight
npm install @ideadope/humanizer // installs the pure ts librarydownload the binary from cdn
https://unpkg.com/@ideadope/[email protected]/dist/humanizer.wasmimport { loadHumanizer } from "@ideadope/humanizer";
const humanize = await loadHumanizer("path-to-wasm-binary");
const output = humanize("hello\u200B world");
console.log(output); // logs: hello worldor install full-fledged library with wasm binary included
npm install @ideadope/humanizer-wasmimport { loadHumanizer } from "@ideadope/humanizer-wasm";
const humanize = await loadHumanizer();
const output = humanize("hello\u200B world");
console.log(output); // logs: hello worldhumanizer/
├── apps/
│ └── demo/ # A demo app to test the Wasm in node enviroment
├── packages/
│ ├── core/ # The main Wasm + JS Glue package
│ │ ├── src/ # Go and TS source
│ │ ├── dist/ # Compiled Wasm/JS/D.TS
│ │ └── package.json
│ └── types/ # (Optional) Shared TS interfaces
├── scripts/ # Shared build bash/python scripts
├── package.json # Root package (defines workspaces)
├── turbo.json # (Optional) Build cache config [planned]
└── tsconfig.json # Base TS config that others inherit from
contributions are welcome
made with ❤️ by ideadope