https://github.com/leops/fgdparser
Parser for the Forge Game Data format
https://github.com/leops/fgdparser
hammer source-engine
Last synced: 5 months ago
JSON representation
Parser for the Forge Game Data format
- Host: GitHub
- URL: https://github.com/leops/fgdparser
- Owner: leops
- Created: 2016-11-03T19:22:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T14:57:03.000Z (about 5 years ago)
- Last Synced: 2024-08-09T00:28:30.276Z (over 1 year ago)
- Topics: hammer, source-engine
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FGDParser
=============
FGD (Forge Game Data) is a configuration format used by the Hammer editor to
define the entities available in the editor and their properties.
## Usage
This module is based on my previous [vmfparser](https://github.com/leops/vmfparser/), and exposes a similar API.
It exports a single `parse(input, options)` function, with the `input` being
an FGD source string, and `options` is an optional object with the following
properties:
- `ast`: If true, will return the Abstract Syntax Tree instead of the
transformed object.