Skip to content

@idfkit/core/node

Node-only conveniences: reading and writing files, and resolving a schema for a version detected in a file. This is the asynchronous edge of the library, kept separate so that the portable core never has to be async and browser bundles never pull in node:fs.

import { loadIdf, saveIdf } from '@idfkit/core/node';
Interfaces

LoadOptions

Properties

bundle

Use a specific bundle rather than the default.

onDiagnostic

Collects diagnostics when strict is false.

strict

Throw on the first diagnostic instead of collecting them.

version

Force a schema version instead of reading it from the file.

Functions

loadEpJson

loadIdf

loadIdfWithDiagnostics

saveEpJson

saveIdf

schemaFor

schemas