Skip to content

Commit

Permalink
Simplify the transform example
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Oct 9, 2012
1 parent dad5a9f commit 874f827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions samples/transform.in

This file was deleted.

4 changes: 2 additions & 2 deletions samples/transform.js
Expand Up @@ -5,8 +5,8 @@
var csv = require('..');

csv()
.fromPath(__dirname+'/transform.in')
.toStream(process.stdout)
.from('82,Preisner,Zbigniew\n94,Gainsbourg,Serge')
.to(console.log)
.transform(function(data,index){
return (index>0 ? ',' : '') + data[0] + ":" + data[2] + ' ' + data[1];
});
Expand Down

0 comments on commit 874f827

Please sign in to comment.