simply-schema-core
sObject schema generation (CSV/Excel parsing, field/object normalization) and interactive schema-report rendering. Full signatures and types are in the API reference.
npm install @simplysf/simply-schema-coreParsing an Excel schema workbook
Section titled “Parsing an Excel schema workbook”import { getObjectInfo, getFieldInfo, getValuesInfo } from '@simplysf/simply-schema-core';import ExcelJS from 'exceljs';
const workbook = new ExcelJS.Workbook();await workbook.xlsx.readFile('./schema.xlsx');
const objectInfo = getObjectInfo(workbook);const fieldRows = getFieldInfo(workbook);Normalizing CSV/Excel field values
Section titled “Normalizing CSV/Excel field values”import { toBoolean, blankToUndefined } from '@simplysf/simply-schema-core';
const required = toBoolean(csvRow.Required);const description = blankToUndefined(csvRow.Description);Rendering an interactive schema report
Section titled “Rendering an interactive schema report”import { buildSchemaReportHtml } from '@simplysf/simply-schema-core';
const html = buildSchemaReportHtml({ username: org.username, nodes, edges, relationships });