Package Exports
- @trim21/dprint-plugin-beancount
- @trim21/dprint-plugin-beancount/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@trim21/dprint-plugin-beancount) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
beancount-format
Rust formatter for Beancount files with a reusable core library, a small CLI, and optional Python bindings.
NPM / jsDelivr
The published package includes plugin.wasm for browser/CDN usage.
- Package: @trim21/dprint-plugin-beancount
- jsDelivr (latest): https://cdn.jsdelivr.net/npm/@trim21/dprint-plugin-beancount@latest/plugin.wasm
- Node usage: require the package and read
wasmPathor callgetWasmBuffer().
Crates
- crates/beancount-formatter: core library containing the formatter and configuration.
- crates/beancount-formatter-cli: CLI wrapper around the formatter library.
- crates/beancount-formatter-py: Python bindings built with PyO3/maturin.
Development
- Build CLI:
cargo build -p beancount-formatter-cli --release - Run tests:
cargo test --workspace - Format code:
cargo fmt --all