jennifer registry

@mplx/xformat

Text transformations in printf's modifier style: case conversions (snake, kebab, camel, pascal, leet, ...), slicing, truncation

formatcasesnake-casecamel-casekebab-case

This deck moved to @skiffyard/texttransform. Change the [decks] entry and the imports (@skiffyard/texttransform/). jvc refuses to add, install or update this name; a lockfile that pins one of its versions still installs, with a warning.

Versions

VersionStatusKindPinRequiresEnginesCapabilities
0.2.0yankedgit9942d1d977f6-jennifer >=0.26.0-
0.1.0yankedgit149ca2328c66-jennifer >=0.26.0-

License

LGPL-3.0-only

Source

Released from
0.2.0
Published under
@mplx mplx
Repository owner
mplx

Resolutions

Times a client asked this registry where to find this deck. Not downloads: the registry only stores metadata, and the code is fetched from its repository directly, so we never see an install and cannot count one. Repeated builds inflate these numbers; installs from an existing lockfile do not appear at all. Counted in UTC.

Readme

@mplx/xformat

test Documentation release

Text transformations in the style of printf's modifiers for Jennifer programs: case conversions (snake, kebab, camel, pascal, constant, title, swap, leet, ...), slicing, truncation, trimming and folding, written as a |-separated spec such as trim|fold|case=kebab. It composes with io.sprintf, which keeps its own verbs and presentation modifiers.

Documentation

Install

jvc add @mplx/xformat

This vendors the deck to vendor/<scope>/xformat/. Without jvc, unpack the src/ subtree of a release archive (<scope>-xformat-<version>.tar.gz) there.

Usage

import "@mplx/xformat/" as xformat;

io.printf("%s=%d\n", xformat.t("max retries", "case=constant"), 3);   # MAX_RETRIES=3
io.printf("%s\n", xformat.t("  Crème Brûlée  ", "trim|fold|case=kebab"));   # creme-brulee

Requirements

Jennifer 0.26.0 or newer. No capability: pure string work.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/xformat_test.j      # the test overlay
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.

tools/check-headers.sh checks every source file's SPDX header against deck.toml.

This deck as JSON