An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.com/adimit/libledger.svg?branch=master)](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