JSPM

@digicatapult/dtdl-parser

0.0.10
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 951
  • Score
    100M100P100Q122196F
  • License Apache-2.0

JS tool to parse DTDL defined Ontologies

Package Exports

  • @digicatapult/dtdl-parser
  • @digicatapult/dtdl-parser/build/src/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)