0.9.8
Node 0.9.8 is out. This release includes an interesting patch from Jake Verbaten to support arbitrary objects in streams. Internally, streams now switch to objectMode
when objects are detected. The unit tests illustrate how this works in practice:
test('can read
...0.9.8
Node 0.9.8 is out. This release includes an interesting patch from Jake Verbaten to support arbitrary objects in streams. Internally, streams now switch to objectMode
when objects are detected. The unit tests illustrate how this works in practice:
test('can read objects from stream',function(t){varr=fromArray([{one:'1'},{two:'2'}]);varv1=r.read();varv2=r.read();varv3=r.read();assert.deepEqual(v1,{one:'1'});assert.deepEqual(v2,{two:'2'});assert.deepEqual(v3,null);t.end();});
Notice how each read
causes an object to be returned. Jake has been heavily involved with streams over the last year or two, with plenty of notable modules in his Raynos GitHub account.
Queen
Last week I wrote about Ozan Turgut’s Thrill project. The core component, which people seemed to find more interesting, was Queen (GitHub: turn / queen, License: Apache v2, npm: queen). Queen is a server that can run scripts on multiple browsers. This could be used for anything, not just for running tests which is what Thrill does.
Queen clients and servers have bidirectional communication, and Queen will detect and recover unresponsive browsers. It can target browsers by type, version, and OS, and run scripts via the command-line.
AssetViz
AssetViz (GitHub: Munter / assetviz, License: MIT, npm: assetviz) by Peter Müller is a command-line web application source code visualisation tool. It generates self-contained HTML files that show a visualisation of the site using D3.js.
The nodes that make up the visualisation can be dragged and will spring back into place, and you can also zoom using the mousewheel.
Read more https://feedproxy.google.com/~r/dailyjs/~3/VQTM9F0t1WE/node-roundup