Migrate consolidation/output-formatters to TypeScript

C Runtime-assisted · version 4.7.1

consolidation/output-formatters 4.7.1 is a PHP package released under the MIT license and requires PHP >=7.1.3. Pext migrates it to TypeScript; on Node.js, 48 of 66 PHPUnit tests pass (72.7%), with 3 failures and 15 errors. It depends on 3 tracked packages (weakest tier: Converted), and 3 tracked packages depend on it.

Format text by applying transformations provided by plug-in formatters.

ConvertsYes
Runs on Node.jsYes
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

72.7% of 66 tests passing (48 passed, 3 failed, 15 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

The 2 test classes with the most failing tests on Node.js:

Test classFailing tests
FormattersTests16
ValidFormatsTest2

What “Runtime-assisted” means

Runs and passes most of its tests, with the Pext runtime doing visible work to preserve PHP behaviour.

Requirements

PHP
>=7.1.3
Extensions
None declared

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

Weakest dependency: D Converted

Used by

More from consolidation

Upstream

Version
4.7.1
License
MIT

Migrating a codebase that uses consolidation/output-formatters?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.