UNPKG

fume-fhir-converter

Version:

FHIR-Utilized Mapping Engine - Community

21 lines 567 B
"use strict"; /** * © Copyright Outburn Ltd. 2022-2024 All Rights Reserved * Project name: FUME-COMMUNITY */ Object.defineProperty(exports, "__esModule", { value: true }); exports.parseCsv = void 0; const tslib_1 = require("tslib"); const csvtojson_1 = tslib_1.__importDefault(require("csvtojson")); const parseCsv = async (csv) => { let json = {}; try { json = await (0, csvtojson_1.default)().fromString(csv); } catch (e) { json = []; } return json; }; exports.parseCsv = parseCsv; //# sourceMappingURL=csvToJson.js.map