💼
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 string -
decode()
only accepts output fromencode()
and will thrownew Error("encountered invalid character")
otherwise