-node and npm installed
Node: https://nodejs.org/en/download/ npm: npm install -g npm
-install npm packages npm install
register | r
balance | b
print | p
-f, --file Provide file path
-s, --sort Sort by date or description writing "date" or "desc" after the flag (default: null)
-p, --price_db Use the price_db of the commodity purchase for performing calculations. (default: null)
-h, --help Get CLI commands information
The arguments should be introduced in this order:
node . --file "file path"
node . balance --sort date --file files/Bitcoin.ledger
node . register --sort desc --file files/Income.ledger
node . print -f files/Bitcoin.ledger
In order of getting help run:
node . --help
The flag "--file" is mandatory