Skip to content

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.

Terminal window
npm install @simplysf/simply-schema-core
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);
import { toBoolean, blankToUndefined } from '@simplysf/simply-schema-core';
const required = toBoolean(csvRow.Required);
const description = blankToUndefined(csvRow.Description);
import { buildSchemaReportHtml } from '@simplysf/simply-schema-core';
const html = buildSchemaReportHtml({ username: org.username, nodes, edges, relationships });