Package Exports
- @digicatapult/dtdl-parser
- @digicatapult/dtdl-parser/build/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@digicatapult/dtdl-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dtdl-parser
A library for parsing and validating (DTDL)[https://learn.microsoft.com/en-us/azure/digital-twins/concepts-models] ontologies.
Prerequisites
node >= 20
dotnet CLI
Run dotnet workload install wasm-tools to install wasm-tools
Getting started
Install dependencies
npm install
Build javascript files
npm run build
Basic usage
import { parseDirectories, validateDirectories} from "dtdl-parser"
import { getInterop } from 'dtdl-parser/src/interop'
const parser = await getInterop()
parseDirectories('../dtdl/simple', parser)