https://github.com/adimit/libledger
experimental (de)serialisation support for ledger like files in Dart
https://github.com/adimit/libledger
accounting dart ledger ledger-cli
Last synced: 4 months ago
JSON representation
experimental (de)serialisation support for ledger like files in Dart
- Host: GitHub
- URL: https://github.com/adimit/libledger
- Owner: adimit
- License: mit
- Created: 2020-01-04T22:29:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-05T22:03:31.000Z (about 6 years ago)
- Last Synced: 2025-02-15T16:42:31.895Z (about 1 year ago)
- Topics: accounting, dart, ledger, ledger-cli
- Language: Dart
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/adimit/libledger)
-----
# Description
Experimental parsing support for the [ledger](https://www.ledger-cli.org/) file
format.
# License
MIT. See the `LICENSE` file.
## Usage
A simple usage example:
```dart
import 'package:libledger/libledger.dart';
main() {
final someString = // get from file
final parseResult = parseTransactions(someString)
if (parseResult is ParseSuccess) {
// handle success case. Transactions are in parseResult.transactions
} else {
// handle error case. You can use parseResult.positionDescription, and parseResult.message.
}
}
```
## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/adimit/libledger/issues