Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Apodini/webidl2swift
https://github.com/Apodini/webidl2swift
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/Apodini/webidl2swift
- Owner: Apodini
- License: mit
- Created: 2020-06-13T07:44:15.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-07T19:13:53.000Z (over 1 year ago)
- Last Synced: 2024-07-05T13:46:04.214Z (3 months ago)
- Language: Swift
- Size: 845 KB
- Stars: 12
- Watchers: 4
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webidl2swift
Generate Swift bridging code from Web IDL files.
## Requirements
This tool currently only runs on macOS and requires Xcode.app.
## Installation
The tool can be build using `swift build`.
## Usage
```
USAGE: generate-code --input-directory --ouput-directory [--create-separate-files] [--no-create-separate-files] [--verbose] [--pretty-print] [--no-pretty-print]OPTIONS:
-i, --input-directory
The path to the directory containing Web IDL files.
-o, --ouput-directory
The path to the output directory.
--create-separate-files/--no-create-separate-files
Create a file for each definition. (default: true)
--verbose Print verbose output.
--pretty-print/--no-pretty-print
Run swift-format over output. (default: true)
-h, --help Show help information.
```For an example setup, see [Example](https://github.com/Apodini/webidl2swift/tree/develop/Example)
## Contributing
Contributions to this projects are welcome. Please make sure to read the [contribution guidelines](https://github.com/Apodini/.github/blob/master/CONTRIBUTING.md) first.## License
This project is licensed under the MIT License. See [License](https://github.com/Apodini/webidl2swift/blob/master/LICENSE) for more information.