Migrate clue/ndjson-react to TypeScript

B Production-ready · version 1.3.0

clue/ndjson-react 1.3.0 is a PHP package released under the MIT license and requires PHP >=5.3. Pext migrates it to TypeScript; on Node.js, 35 of 42 PHPUnit tests pass (83.3%), with no failures and 7 errors. It depends on 1 tracked package (weakest tier: Converted), and 1 tracked package depends on it.

Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.

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

PHPUnit results on Node.js

83.3% of 42 tests passing (35 passed, 0 failed, 7 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
EncoderTest7

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
>=5.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

Upstream

Version
1.3.0
License
MIT
Homepage
https://github.com/clue/reactphp-ndjson
Keywords
NDJSON, newline, JSON, jsonlines, streaming, ReactPHP

Migrating a codebase that uses clue/ndjson-react?

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