@fintekkers/ledger-models

中文文档
1.1.29发布于 2026/11/01ISCCommonJS

ledger model protos

原始使用文档

Getting Started - Building

In order to build the protos in Javascript, you must download the web extension. For Mac this is:

brew install protobuf@3 brew link --overwrite protobuf@3

brew install protoc-gen-grpc-web

see more at https://github.com/grpc/grpc-web. Once install the Javascript portion of the compile.sh script at the root of this project should work.

TODO: Are there env variables required?

DEV Notes

The *js files are compiled using tsc. The tsconfig.json is used by VS code to determine when to run (by default on-save). Additionally the *.js.map files are generated to allow for setting debug breakpoints in .ts code. Those files can be not autogenerated by setting sourceMap=False in the tsconfig.json. Probably don't need those files in a production environment.

You can run transpilation via pressing Ctrl+Shift+B to open a list of tasks in VS Code and select tsc: watch - tsconfig.json

Publishing

Please see the .github/workflows/npm-publish.yml for the workflow file that deploys the package to a private GitHub repository manager.

The workflow file creates a .npmrc file within the build step and injects the publish token into it. Currently this is coming from dado0583's account (need to migrate to org secrets). The ephemeral .npmrc file will look like this:

@USERNAME:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=TOKEN

版本与发布记录

@fintekkers/ledger-models 共发布 181 个版本,首次发布于 2023/08/05;过去 12 个月发布了 126 个版本。

版本发布日期距今
1.1.29latest2026/11/012 天前
1.1.282026/11/012 天前
1.1.272026/11/012 天前
1.1.262026/10/312 天前
1.1.252026/10/313 天前
1.1.242026/10/313 天前

关于 @fintekkers/ledger-models 的常见问题

@fintekkers/ledger-models 是什么?

分类账模型原型

如何安装 @fintekkers/ledger-models?

在项目目录运行 npm install @fintekkers/ledger-models,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:grpc-web(^1.4.2)、google-protobuf(^4.0.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@fintekkers/ledger-models 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/fintekkers__ledger-models 是否存在。

@fintekkers/ledger-models 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@fintekkers/ledger-models 可以商用吗?

@fintekkers/ledger-models 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fintekkers/ledger-models 还在维护吗?

最新版本 1.1.29 发布于 2026/11/01(2 天前);至今共发布 181 个版本,其中过去 12 个月发布了 126 个;首次发布于 2023/08/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。