Skip to content

ideadope/humanizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

humanizer

a go webassembly(wasm) port for filtering out hidden hexcodes from text

Note

the package is in its early development, be causious!

installation

install the lightweight

npm install @ideadope/humanizer // installs the pure ts library

download the binary from cdn

https://unpkg.com/@ideadope/[email protected]/dist/humanizer.wasm
import { loadHumanizer } from "@ideadope/humanizer";

const humanize = await loadHumanizer("path-to-wasm-binary");

const output = humanize("hello\u200B world");
console.log(output); // logs: hello world

or install full-fledged library with wasm binary included

npm install @ideadope/humanizer-wasm
import { loadHumanizer } from "@ideadope/humanizer-wasm";

const humanize = await loadHumanizer();

const output = humanize("hello\u200B world");
console.log(output); // logs: hello world

project structure

humanizer/
├── 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

About

Simple go port for wasm to filter out hidden hexcode from text

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors