A module for injesting a YIN datamodel and handling instance data.

Usage no npm install needed!

<script type="module">
  import 128technologyYinz from 'https://cdn.skypack.dev/@128technology/yinz';


Yinz Node.js CI npm version

A library for Node.js that can parse YIN (RFC 6020) models and ingest XML instance data associated with them. Note that is library is designed to work with consolidated XML models produced by YINsolidated, it will not work on standard YIN models.

This library aims to accomplish the following:

  • Ingest XML datamodels produced by YINsolidated.
  • Allow querying and walking of the ingested models, including support for the types outlined in RFC 6020.
  • Ingest an XML instance of data matching the ingested datamodel. This typically comes from a NETCONF response.
  • Allow querying of the instance data, including evaluation of when conditions, leaf references, etc.