https://github.com/bouke/ini
Swift INI parser based on (NS)Scanner
https://github.com/bouke/ini
ini ini-parser ini-reader swift
Last synced: 12 months ago
JSON representation
Swift INI parser based on (NS)Scanner
- Host: GitHub
- URL: https://github.com/bouke/ini
- Owner: Bouke
- License: mit
- Created: 2016-06-15T06:18:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T20:11:23.000Z (over 7 years ago)
- Last Synced: 2025-03-18T18:45:30.463Z (over 1 year ago)
- Topics: ini, ini-parser, ini-reader, swift
- Language: Swift
- Homepage:
- Size: 19.5 KB
- Stars: 16
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift INI Parser
[](https://travis-ci.com/Bouke/INI)
[](https://sonarcloud.io/dashboard?id=Bouke_INI)
## Usage
INI file looking like this:
```ini
[Header]
Key=Value
; some comment
```
Parse it like this:
```swift
let config = try parseINI(filename: "config.ini")
print(config["Header"]?["Key"]) // prints Optional("Value")
```