Skip to content

Commit

Permalink
Merge pull request #85 from hildjj/main
Browse files Browse the repository at this point in the history
Updates README.md to add es as an output format
  • Loading branch information
hildjj authored Apr 19, 2021
2 parents deed390 + d6d1719 commit 434c4b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ You can tweak the generated parser with several options:
`peg.generate`
- `--extra-options-file` — file with additional options (in JSON format) to
pass to `peg.generate`
- `--format` — format of the generated parser: `amd`, `commonjs`, `globals`,
- `--format` — format of the generated parser: `amd`, `es`, `commonjs`, `globals`,
`umd` (default: `commonjs`)
- `--optimize` — selects between optimizing the generated parser for parsing
speed (`speed`) or code size (`size`) (default: `speed`)
Expand Down Expand Up @@ -153,13 +153,13 @@ object to `peg.generate`. The following options are supported:
`false`)
- `dependencies` — parser dependencies, the value is an object which maps
variables used to access the dependencies in the parser to module IDs used
to load them; valid only when `format` is set to `"amd"`, `"commonjs"`, or
to load them; valid only when `format` is set to `"amd"`, `"commonjs"`, `"es"`, or
`"umd"` (default: `{}`)
- `exportVar` — name of a global variable into which the parser object is
assigned to when no module loader is detected; valid only when `format` is
set to `"globals"` or `"umd"` (default: `null`)
- `format` — format of the genreated parser (`"amd"`, `"bare"`, `"commonjs"`,
`"globals"`, or `"umd"`); valid only when `output` is set to `"source"`
`"es"`, `"globals"`, or `"umd"`); valid only when `output` is set to `"source"`
(default: `"bare"`)
- `optimize`— selects between optimizing the generated parser for parsing
speed (`"speed"`) or code size (`"size"`) (default: `"speed"`)
Expand Down

0 comments on commit 434c4b9

Please sign in to comment.