{"library":"ts-pegjs","type":"library","category":null,"description":"TS PEG.js is a TypeScript code generation plugin for peggy parser generator (v3+). Current stable version is 4.2.1, compatible with peggy ^3.0.2. It generates TypeScript parsers from PEG grammars, supporting custom headers, return type annotations, and various options for type computation. Key differentiators: first-class TypeScript output, supports both CommonJS and ESM formats, and integrates seamlessly with peggy's CLI and API. Previously supported pegjs, now exclusively peggy. Notable breaking changes in v3.0.0 include renaming exported interfaces (dropping 'I' prefix) and changing the default error name from SyntaxError to PeggySyntaxError.","language":"javascript","status":"active","version":"4.2.1","tags":["javascript","peggy","pegjs","plugin","ts","typescript","parser","generator"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-pegjs","imports":["import tspegjs from 'ts-pegjs';","const tspegjs = require('ts-pegjs');","import type { ParseOptions, SourceNode } from 'ts-pegjs';"]},{"cmd":"yarn add ts-pegjs","imports":[]},{"cmd":"pnpm add ts-pegjs","imports":[]}],"homepage":null,"github":"https://github.com/metadevpro/ts-pegjs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-pegjs","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/ts-pegjs/compatibility"}}