Created
August 21, 2014 00:40
-
-
Save nickleefly/47ee8c9f180abb773d0e to your computer and use it in GitHub Desktop.
stream data into a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs') | |
var wstream = fs.createWriteStream('myfile.csv') | |
wstream.write('id, title, rating, zipcode\n') | |
wstream.write('1, my title, 5, 94402\n') | |
wstream.end() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment