You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://packagist.org/packages/clue/ndjson-react)
5
5
6
6
Streaming newline-delimited JSON ([NDJSON](http://ndjson.org/)) parser and encoder for [ReactPHP](https://reactphp.org/).
@@ -10,7 +10,7 @@ file to store any kind of (uniform) structured data, such as a list of user
10
10
objects or log entries. It uses a simple newline character between each
11
11
individual record and as such can be both used for efficient persistence and
12
12
simple append-style operations. This also allows it to be used in a streaming
13
-
context, such as a simple inter-process commmunication (IPC) protocol or for a
13
+
context, such as a simple inter-process communication (IPC) protocol or for a
14
14
remote procedure call (RPC) mechanism. This library provides a simple
15
15
streaming API to process very large NDJSON files with thousands or even millions
16
16
of rows efficiently without having to load the whole file into memory at once.
@@ -39,7 +39,7 @@ of rows efficiently without having to load the whole file into memory at once.
39
39
40
40
## Support us
41
41
42
-
We invest a lot of time developing, maintaining and updating our awesome
42
+
We invest a lot of time developing, maintaining, and updating our awesome
43
43
open-source projects. You can help us sustain this high-quality of our work by
44
44
[becoming a sponsor on GitHub](https://github.com/sponsors/clue). Sponsors get
45
45
numerous benefits in return, see our [sponsoring page](https://github.com/sponsors/clue)
@@ -75,7 +75,7 @@ no "outer array" to be modified). This makes it a perfect fit for a streaming
75
75
context, for line-oriented CLI tools (such as `grep` and others) or for a logging
76
76
context where you want to append records at a later time. Additionally, this
77
77
also allows it to be used in a streaming context, such as a simple inter-process
78
-
commmunication (IPC) protocol or for a remote procedure call (RPC) mechanism.
78
+
communication (IPC) protocol or for a remote procedure call (RPC) mechanism.
79
79
80
80
The newline character at the end of each line allows for some really simple
81
81
*framing* (detecting individual records). While each individual line is valid
@@ -134,12 +134,12 @@ as parsed values instead of just chunks of strings:
134
134
```
135
135
136
136
```php
137
-
$stdin = new ReadableResourceStream(STDIN);
137
+
$stdin = new React\Stream\ReadableResourceStream(STDIN);
0 commit comments