dsv-to-json
Delimiter-separated values to JSON
Get a JSON object by providing a file and its delimiter.
File to be parsed
title, genre, year
The Pursuit Of Happiness, Drama, 2006
The Expendables, Action, 2010
The Godfather, Drama, 1972
How to parse
const dsvToJson = ;let moviesOptions =delimiter: ','fileName: 'movies.dsv';
Options
Required parameters:
<delimiter>
: Custom delimiter. It can be any symbol you want. Ex.: |
, ;
, ,
or anything you want.
<fileName>
: The path to the file and its extension. For now, this module is extension agnostic.