Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honza/budget
https://github.com/honza/budget
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/honza/budget
- Owner: honza
- License: bsd-2-clause
- Created: 2013-05-07T22:36:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-07T22:43:46.000Z (over 11 years ago)
- Last Synced: 2024-04-16T01:44:52.655Z (7 months ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Budget
======This is a simple command-line tool to help keep track of your expenses. It
consists of a `b.js` command and a special file format, `*.b`. Included in
theh repo is a vim plugin to give you syntax highlighting and filetype
detection for `.b` files.File format
-----------```
2013-05-08 paycheck $2000
2013-05-07 computers -$20
2013-05-05 pen and paper -$20
2013-05-03 3 pizzas -$10
```Command
-------$ b.js sample.b
This will add up all of your income and expenses and give you a total.
TODO
----* Spending per month
* Show all items under/over a certain amount
* ASCII spending graph over timeHow it works
------------This started as a learning project. The `.b` file parsing is implemented using
a PEG parser, pegjs. You can see the grammar in `budget.pegjs`. This grammar
is then compiled to Javascript. The parser produces a simple AST which is then
parsed by the `b.js` file.License
-------BSD, short and sweet