How to save directly to a folder a CSV file using NodeJs?
<p>How to save a CSV file directly to a folder destination?</p>

<p>Currently my code prompts the save window in the browser, I DO NOT want that.</p>

<p>I want NodeJS to save the CSV directly to a folder destination</p>

<p>How can I do that?</p>

<pre><code>var fs = require('fs');
var express = require('express');
csv = require('express-csv');
var request = require('request');
var cheerio = require('cheerio');
var async = require('async');
var app     = express();

app.get('/scraper', function(req, res){
    var offset = req.query.offset || 0;
    var limit = req.query.limit || 50;

    if(gCounter === 0){
        getStreamerInfo(offset, limit, function(response){
            console.log("FILE READY!");
            res.csv(response); // this export to browser but I want to save directly to a folder
        });
    }

});
</code></pre>