i'm trying export array of data csv file in nodejs. i'm using nodecsv module, errors every time try follow examples , documentation. prints bunch of code , says stringifier has no method 'indexof' when try use stringifier , says 'object not function' when try
csv().from.array(results).to('/temp/users.csv')
it doesn't work if take () off csv either. know how or can point me documentation?
hope more:
http.createserver(function(request, response) { response.setheader('content-disposition', 'attachment; filename=testing.csv'); response.writehead(200, { 'content-type': 'text/csv' }); csv().from(data).to(response)
}) .listen(3000);
Comments
Post a Comment