Skip to content

Conversation

@repiatx
Copy link

@repiatx repiatx commented Apr 19, 2020

Thank you for your hard work and i appricate if you can add this

@repiatx repiatx changed the title #18 added delimiter options added delimiter options Apr 19, 2020
@phw phw mentioned this pull request May 28, 2020
@nealoke
Copy link

nealoke commented Oct 1, 2020

Will this ever be implemented? 😢

@repiatx
Copy link
Author

repiatx commented Oct 1, 2020

Will this ever be implemented? 😢

dunno :) i did my best. :D

@guizzo
Copy link

guizzo commented Nov 20, 2021

@anton-bot this library still actively maintained?

I have 1.3.6 version on my backend and I need to change , separator with ; , so i tried to pass it as an options like this below, but it doesn't seem to work :(

const ObjectsToCsv = require('objects-to-csv');
const CoreModules = require('../../core');

/* ... more code here... */

const file = await new ObjectsToCsv(list).toDisk(`${CoreModules.Configuration.CSV.CSV_FOLDER_PATH}/${filename}.csv`, {
    bom: true,
    delimiter: ';'
  });

Thanks anyway for you work!

@jandersonclemente
Copy link

@anton-bot this library still actively maintained?

I have 1.3.6 version on my backend and I need to change , separator with ; , so i tried to pass it as an options like this below, but it doesn't seem to work :(

const ObjectsToCsv = require('objects-to-csv');
const CoreModules = require('../../core');

/* ... more code here... */

const file = await new ObjectsToCsv(list).toDisk(`${CoreModules.Configuration.CSV.CSV_FOLDER_PATH}/${filename}.csv`, {
    bom: true,
    delimiter: ';'
  });

Thanks anyway for you work!

Hello @guizzo
I tried to pass the parameter, but didn't worked out for me too. I ended up forking the repo and implementing it myself.

Here it is. Hope it's useful for someone:
https://www.npmjs.com/package/objects-to-csv-delimited

npm i objects-to-csv-delimited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants