pradeep-mishra / csvjson

csv to json
MIT License
59 stars 22 forks source link

'ACL.read.allow.user': 'all', it is not coverting to objects , #13

Closed kashishchakarvarti closed 7 years ago

pradeep-mishra commented 7 years ago

Try toSchemaObject()function

and for multiple delimiter use regex like this csvjson.toSchemaObject(fs.readFileSync('./test/sample.csv', {encoding : 'utf8'}), {delimiter : /[,|;]+/})