Migrate consolidation/config to TypeScript

B Production-ready · version 3.2.1

consolidation/config 3.2.1 is a PHP package released under the MIT license and requires PHP >=8.2.0. Pext migrates it to TypeScript; on Node.js, 31 of 36 PHPUnit tests pass (86.1%), with 3 failures and 2 errors. It depends on 3 tracked packages (weakest tier: Converted), and 4 tracked packages depend on it.

Provide configuration services for a commandline tool.

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

PHPUnit results on Node.js

86.1% of 36 tests passing (31 passed, 3 failed, 2 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
ConfigProcessorTest2
ConfigTest2
ConfigLoaderTest1

What “Production-ready” means

Passes at least 80% of its original tests and behaves like the PHP original on the paths that matter. Remaining gaps are tracked.

Requirements

PHP
>=8.2.0
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
3.2.1
License
MIT

Migrating a codebase that uses consolidation/config?

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