{"library":"esbuild-peggy","type":"library","category":null,"description":"esbuild plugin that allows importing PEG.js/Peggy grammar files (.pegjs/.peggy) directly in JavaScript/TypeScript bundles. Current stable version is 1.0.7, requiring Node >=20 and npm >=10. It automatically rebuilds parsers when grammar files change, fully supports esbuild watch mode, and ships TypeScript types. Differentiates from similar tools (like pegjs-loader for webpack) by targeting esbuild's speed and simplicity.","language":"javascript","status":"active","version":"1.0.7","tags":["javascript","esbuild","esbuild-plugin","peggy","peg","peg.js","pegjs","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install esbuild-peggy","imports":["import { peggyPlugin } from 'esbuild-peggy'","import { peggyPlugin } from 'esbuild-peggy';\npeggyPlugin({ cache: true })","import parser from './grammar.pegjs'","import parser from './grammar.pegjs';\nparser.parse('input') as number"]},{"cmd":"yarn add esbuild-peggy","imports":[]},{"cmd":"pnpm add esbuild-peggy","imports":[]}],"homepage":"https://github.com/rodw/esbuild-peggy#readme","github":"https://github.com/rodw/esbuild-peggy","docs":null,"changelog":null,"pypi":null,"npm":"esbuild-peggy","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}