@rubixibuc/briefcase
v0.10.3
Published
Visually hidden case formatting
Downloads
16
Maintainers
Readme
briefcase 💼
Visually hidden case formatting
Getting started
Installation
npm i @rubixibuc/briefcase
Example
import { encode, decode } from "@rubixibuc/briefcase";
// string encoded to zero width non-printable characters
const encoded = encode("abc");
const decoded = decode(encoded);
// decoded === "abc"
encode()
anddecode()
both return the passed value unchanged when given anything but non-empty stringdecode()
only accepts output fromencode()
and will thrownew Error("encountered invalid character")
otherwise