JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q39841F
  • License Unlicense

Visually hidden case formatting

Package Exports

  • @rubixibuc/briefcase

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rubixibuc/briefcase) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status Coverage Status

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() and decode() both return the passed value unchanged when given anything but non-empty string
  • decode() only accepts output from encode() and will throw new Error("encountered invalid character") otherwise