Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yfwz100/unplugin-peggy
The unplugin for Peggy (aka PEG.js).
https://github.com/yfwz100/unplugin-peggy
Last synced: 7 days ago
JSON representation
The unplugin for Peggy (aka PEG.js).
- Host: GitHub
- URL: https://github.com/yfwz100/unplugin-peggy
- Owner: yfwz100
- License: mit
- Created: 2022-08-24T16:34:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T17:08:27.000Z (about 2 years ago)
- Last Synced: 2024-10-13T17:29:28.657Z (about 1 month ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unplugin-peggy
The unified plugin of [Peggy][] (a fork of [PEG.js][]) for webpack/rollup/vite/... It is originally forked from [rollup-plugin-peggy][] & [rollup-plugin-pegjs][], which are seemed not actively maintained.
## Installation
```sh
npm i -D unplugin-peggy
```## Usage
Take rollup as an example:
```js
import { defineConfig } from 'rollup';
import peggy from 'unplugin-peggy';export default defineConfig({
plugins: [peggy.rollup()],
});
```The detail of the options can be found in the TypeScript declaration file.
## License
MIT
[peggy]: https://peggyjs.org 'Peggy: Parser Generator for JavaScript'
[peg.js]: https://github.com/pegjs/pegjs 'PEG.js: Parser Generator for JavaScript'
[rollup-plugin-peggy]: https://github.com/caleb531/rollup-plugin-peggy 'rollup-plugin-peggy'
[rollup-plugin-pegjs]: https://github.com/cameronhunter/rollup-plugin-pegjs 'rollup-plugin-pegjs'