lst-to-json
v0.1.1
Published
Converts spool (lst) files to JSON via streams
Downloads
10
Readme
lst-to-json
Transforms a spool (lst) file to json line-by-line via streams
Example Usage:
var lstToJSON = require('lst-to-json');
var lstHeaders = [
{ header: "LAST_NAME", length: 35 },
{ header: "FIRST_NAME", length: 20 },
{ header: "MIDDLE_NAME", length: 20 },
{ header: "NAME_SUFFIX", length: 3 },
{ header: "BIRTH_YEAR", length: 4 },
{ header: "GENDER", length: 1 }
];
// Reads in the lst, and outputs the JSON file
lstToJSON( {
headers: lstHeaders,
inputFile: 'someInput.lst',
outputFile: 'someOutput.json'
});