-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added in readme and updated build script
- Loading branch information
1 parent
3fca999
commit 5c03bcc
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
# dtdl-parser | ||
# 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](https://learn.microsoft.com/en-us/dotnet/core/install/) | ||
Run `dotnet workload install wasm-tools` to install `wasm-tools` | ||
|
||
## Getting started | ||
|
||
Install dependencies | ||
|
||
`npm install` | ||
|
||
Build javascript files | ||
|
||
`npm run build` | ||
|
||
Basic usage | ||
|
||
```javascript | ||
import { parseDirectories, validateDirectories} from "dtdl-parser" | ||
import { getInterop } from 'dtdl-parser/src/interop' | ||
|
||
const parser = await getInterop() | ||
parseDirectories('../dtdl/simple', parser) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters