Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Feb 20, 2024
2 parents 5896c7e + 981c622 commit 0c930f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/csv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ const defaultSeparator = ','
export function csvStringify(data: any[], opt: {
// header?: string[]
separator?: string
addBom?: boolean // option to add byte order mark for improved Excel support
} = {}): string {
const { separator = defaultSeparator } = opt
let body = ''
if (opt.addBom) {
body = '\ufeff'
}

// Append the header row to the response if requested
// if (header)
Expand Down

0 comments on commit 0c930f0

Please sign in to comment.