Permalink
Browse files

added pipe example

  • Loading branch information...
1 parent 381fb54 commit 237dd0504c4eb3d8fe4e2f5bdd84406c4dd434bb @impronunciable committed Sep 18, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 examples/pipe/to_file.js
View
@@ -0,0 +1,9 @@
+
+var tuiter = require('../../')(require('./keys.json'))
+ , fs = require('fs');
+
+var output = fs.createWriteStream(__dirname + '/output.txt');
+
+tuiter.sample(function(stream){
+ stream.pipe(output);
+});

0 comments on commit 237dd05

Please sign in to comment.