This script parses byte-offset encoded data files into csvs.
- Make sure you have node.js installed
- Clone or download this repository to your computer
- In terminal, navigate to the downloaded directory and run
npm install
- Place all files that you want to transform in the
inputs
directory. They must all have the same schema. - In
config.json
, specify a valid JSON object with two properties:ignoreEndCharacters
: the number of characters that you want to ignore at the end of every line, including whitespace and line break characterscolumns
: an array of objects, each with aname
property (the name to give the column) and alength
property, the number of characters to allocate to that field.
- Please see the examples directory for an example
- Navigate to this directory in terminal, and run
npm start