Minimalist plain text budgeting.
undefinedRead the blog post.undefined
undefinedGet the app.undefined
% npm i pbudget -g
% pbudget -s Budget.txt
% pbudget --stats Budget.txt
% cat Budget.txt | pbudget > Budget.txt
undefinedGroups start with = and are used to group values.
undefinedFlows start with + and are used to express cash flow.
undefinedGroups can be referenced in other groups or flows.
undefinedMultipliers can added to any referenced group or value.
Blocks of text with invalid syntax will be ignored and remain intact in the source.
Circular dependencies (group references) will cause both groups to be ignored.
Padding is automatically added to the value column.
|
undefinedInputundefined
|
undefinedOutputundefined
|
import { readFileSync } from 'node:fs'
import { PlainBudget } from 'pbudget'
const budget = readFileSync('Budget.txt', 'utf8')
const pbudget = new PlainBudget(budget)
pbudget.process()
console.log(pbudget.renderWithPadding())
pbudget.computeStats()
console.log(pbudget.stats)
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.