Closed kashishchakarvarti closed 7 years ago
Try toSchemaObject()function
toSchemaObject()
and for multiple delimiter use regex like this csvjson.toSchemaObject(fs.readFileSync('./test/sample.csv', {encoding : 'utf8'}), {delimiter : /[,|;]+/})
csvjson.toSchemaObject(fs.readFileSync('./test/sample.csv', {encoding : 'utf8'}), {delimiter : /[,|;]+/})
Try
toSchemaObject()
functionand for multiple delimiter use regex like this
csvjson.toSchemaObject(fs.readFileSync('./test/sample.csv', {encoding : 'utf8'}), {delimiter : /[,|;]+/})