UNPKG

curaprofile2json

Version:

input curaprofile and output json

11 lines 380 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (lines) => { const result = {}; for (const line of lines) { const keyVal = line.split('=').map(a => a.trim()); result[keyVal[0]] = !isNaN(parseInt(keyVal[1])) ? parseInt(keyVal[1]) : keyVal[1]; } return result; }; //# sourceMappingURL=linesToJson.js.map