Skip to content

Transforms a spool (lst) file to json line-by-line via streams

Notifications You must be signed in to change notification settings

clounie/lst-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
});

About

Transforms a spool (lst) file to json line-by-line via streams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages