Running Node's real lib/ in a browser tab
There are two ways to give a browser a Node-compatible runtime, and for a long time we were confidently building the wrong one.
Path A is the obvious one: hand-write the core modules. Implement fs on
top of your virtual filesystem, implement path as string manipulation,
implement events as a small emitter, and keep going. It feels productive
immediately. path takes an afternoon. events takes a morning. fs takes a
week and mostly works.
Then you reach stream, and progress stops.