UNPKG

pvserverhelper

Version:

This is an npm module design to perform common uses with pVelocity's pvserver

18 lines (16 loc) 543 B
### ``convertFile(converter, source, target, options, decoding, encoding)`` Converts csv to json from ``source`` to ``target`` with ``options``, ``decoding`` and ``encoding`` settings. See https://www.npmjs.com/package/csvtojson for options. - `source` `<String>` - `target` `<String>` - `options` `<Object>` - `decoding` `<String>` - `encoding` `<String>` ```js pvh.convertFile('./hello.csv', './hello.json', { checkType: false, ignoreEmpty: true, headers: ['Name', 'Value'], }, 'win1252', 'utf8').then(function(result){ }); ```