mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-04 10:49:07 +00:00
FEAT: pii
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { stringify } from 'csv'
|
||||
|
||||
export class CsvParser<T> {
|
||||
async parse(data: T[]) {
|
||||
return new Promise((resolve, reject) => {
|
||||
stringify(data, { header: true }, function (err, output) {
|
||||
if (err) reject(err);
|
||||
console.log(output)
|
||||
|
||||
resolve(output)
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user