Browse files

better example (lazy vs Lazy)

  • Loading branch information...
1 parent 9d9ed4f commit a425d61edf1d0f5cbfb8b0d74c08171f64d9184c @pkrumins pkrumins committed Sep 5, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 readme.txt
@@ -106,10 +106,11 @@ Here is the latest feature: .lines. Given a stream of data that has \n's in it,
Here is an example from node-iptables that I wrote the other week,
+ var Lazy = require('lazy');
var spawn = require('child_process').spawn;
var iptables = spawn('iptables', ['-L', '-n', '-v']);
- lazy(iptables.stdout)
+ Lazy(iptables.stdout)
.skip(2) // skips the two lines that are iptables header

0 comments on commit a425d61

Please sign in to comment.