2.0.2 • Published 7 months ago

costflow v2.0.2

Weekly downloads
45
License
GPL-3.0
Repository
github
Last release
7 months ago

Costflow Parser

Costflow Parser is a double-entry bookkeeping library that parses plain text to JSON or Beancount/Ledger/hledger formats using Costflow Syntax.

Costflow Syntax Version: v1.0

Docs

https://www.costflow.io/docs/

Installing

Using npm:

npm install costflow

Using yarn:

yarn add costflow

Example

import costflow from "costflow";
// or imports with `require()`
const costflow = require("costflow");

const config = {
  mode: "beancount",
  currency: "USD",
  timezone: "America/Los_Angeles",
  account: {
    visa: "Liabilities:Visa",
    music: "Expenses:Music",
  },
  formula: {
    spotify: "@Spotify #music 15.98 USD visa > music",
  },
};

const fn = async () => {
  await costflow.parse("spotify", config);
};
fn();

Features

  • Date is optional, the default value is "today" in your timezone.
  • Currency/Commodity code is optional.
  • Account name replacements. E.g. bofa could be replaced with Assets:US:BofA:Checking.
  • Formula. Creating patterned transactions such as Netflix/Spotify subscription is easier than ever.
  • Get real time price for exchanging rate or stock, even cryptocurrency.
  • Simple transaction syntax.
  • Custom indent and line length.
  • Insert time to every transaction.

Playground: https://playground.costflow.io

License

Commercial license

If you want to use Costflow Parser to develop non open sourced sites, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Which means, you won't have to change your whole application source code to an open source license. [Purchase a Commercial License]

Open source license

If you are creating an open source application under a license compatible with the GNU GPL license v3, you may use Costflow Parser under the terms of the GPLv3.

The credit comments in the JavaScript and CSS files should be kept intact (even after combination or minification)

Roadmap

https://github.com/orgs/costflow/projects

Check out Costflow Syntax for more information.

2.0.2

7 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago