Skip to content

Nef10/SwiftBeanCountParser

Repository files navigation

SwiftBeanCountParser

CI Status Documentation percentage License: MIT Latest version platforms supported: linux | macOS | iOS | watchOS | tvOS SPM compatible

This project is part for SwiftBeanCount, please check out the main documentation here.

What

This is the parser of SwiftBeanCount. It takes a string or a file and returns a Ledger (from SwiftBeanCountModel).

How

Either call Parser.parse(contentOf: URL) or Parser.parse(string: String). You can check out the complete documentation here.

Usage

The library supports the Swift Package Manger, so simply add a dependency in your Package.swift:

.package(url: "https://github.com/Nef10/SwiftBeanCountParser.git", .exact("X.Y.Z")),

Note: as per semantic versioning all versions changes < 1.0.0 can be breaking, so please use .exact for now