{"library":"apg-lite","type":"library","category":null,"description":"apg-lite is a lightweight JavaScript parser for ABNF (Augmented Backus-Naur Form) grammars, supporting a simplified subset of SABNF operators. It functions strictly as a parser, requiring grammar objects to be pre-generated using `apg-js` (version 4.3.0 or higher) with its `--lite` option. Currently at version 1.0.5, it parses only JavaScript strings, a key distinction from `apg-js` which handles arbitrary arrays of positive integers. The library retains only User-Defined Terminals (UDT), positive look-ahead (AND), and negative look-ahead (NOT) operators from the SABNF superset. It offers simplified AST manipulation, parse tree tracing for debugging, and statistics collection for profiling, all encapsulated within a single ECMAScript Module (ESM) compatible JavaScript file. The package is actively maintained, with a release cadence driven by bug fixes and minor enhancements, as demonstrated by recent updates to its robust, dependency-free URI parser.","language":"javascript","status":"active","version":"1.0.5","tags":["javascript","APG","parser","ABNF","SABNF"],"last_verified":"Wed May 27","install":[{"cmd":"npm install apg-lite","imports":["import { Parser } from 'apg-lite/lib/parser'","import { UriParser } from 'apg-lite/uri-app/UriParser'","<script src=\"./node_modules/apg-lite/lib/web-parser.js\"></script>"]},{"cmd":"yarn add apg-lite","imports":[]},{"cmd":"pnpm add apg-lite","imports":[]}],"homepage":null,"github":"https://github.com/ldthomas/apg-lite","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/apg-lite","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/apg-lite/compatibility"}}