A parser for the YANG data modeling language (RFC 7950) written in CoffeeScript using the Comparse functional parsing library. Current stable version 0.2.1 performs lexical analysis and returns a tree of YANG statements without syntactic or semantic validation. The package has not been updated since 2017 and is considered stable but unmaintained. It is primarily for Node.js usage and depends on Comparse.
npm install yang-parserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a YANG module string and logs the resulting JSON tree.
Consider migrating to a maintained YANG parser such as yang-parser-js or pyang.
Validate output with a separate tool like pyang.
Install with legacy peer deps if using npm v7+.
Run 'npm install yang-parser' in your project directory.
Use 'import { parse } from 'yang-parser'' instead.