matthewmueller / x-ray

The next web scraper. See through the <html> noise.
MIT License
5.87k stars 349 forks source link

Append data to file #127

Open ludwigfrank opened 8 years ago

ludwigfrank commented 8 years ago

Is there a way to append data to a file instead of creating a new one (aka fs.appendFile)?

Kikobeats commented 8 years ago

Check this line:

https://github.com/lapwinglabs/x-ray/blob/master/index.js#L238

Could be possible passing the {flag: 'a'} https://nodejs.org/api/fs.html#fs_fs_createwritestream_path_options

Can you convert this into a PR?