dominictarr / event-stream

EventStream is like functional programming meets IO
MIT License
2.19k stars 149 forks source link

simple example pretty.js - split #98

Closed milanbella closed 5 years ago

milanbella commented 7 years ago

That example is not instructive of concepts and is buggy.

Curl fetches only one line without EOL so it works. But mapping only just one line of input to json is not good way explaining the concept of 'map' function.

As soon as I tried mapping more then one line pretty.js has crashed in json parser on syntax error because es.split() has correctly generated empty string after last EOL terminating last line.